You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
g++ -std=c++17 -pedantic -Wall -g -O3 -I. -I/usr/local/include -fPIC `pkg-config --cflags Qt6Core Qt6Gui Qt6Widgets` -MMD -c -o src/main.o src/main.cc
Package Qt6Core was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt6Core.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt6Core' found
Package Qt6Gui was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt6Gui.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt6Gui' found
Package Qt6Widgets was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt6Widgets.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt6Widgets' found
src/main.cc:18:10: fatal error: QApplication: No such file or directory
18 | #include <QApplication>
| ^~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: src/main.o] Error 1
The text was updated successfully, but these errors were encountered:
I see. Ok so the first step is to allow the user to choose Qt version during configure.
Ubuntu not packaging the pkgconfig file should probably be considered an ubuntu bug, but we could add a configure flag to let the user specify Qt paths, instead of calling pkg-config.
Interesting homebrew link. I should have made it clear I don't have access to a Mac. If they are fixing it then maybe it is just a question of waiting for Ubuntu 24.04 and then switching.
No code changes required. On Linux and FreeBSD with Qt >= 6.2.5 it's enough to:
Although 6.1 typically moved moc, rcc and uic into a libexec subdirectory so most people will have to set UIC, MOC and RCC.
On Ubuntu 22.04 with Qt 6.2.4, and macOS apparently, the pkg-config files are not installed
https://bugreports.qt.io/browse/QTBUG-86080
causing make to fail - Ubuntu 22.04:
The text was updated successfully, but these errors were encountered: