XaoS
XaoS copied to clipboard
OpenGL qmake build on Ubuntu 22.04 missing
Describe the bug
DEFINES+=USE_OPENGL does not add -I/usr/include/x86_64-linux-gnu/qt6/QtOpenGLWidgets
to INCPATH or /usr/lib/x86_64-linux-gnu/libQt6OpenGLWidgets.so
to LIBS
To Reproduce
-
qmake6 DEFINES+=USE_LONG_DOUBLE DEFINES+=USE_OPENGL
-
make
- Fails because INCPATH (compile) and LIBS (link, once compile is fixed) do not include required entries
Expected behavior
I expected qmake to add the required entries to INCPATH and LIBS.
Desktop (please complete the following information):
- OS: Ubuntu Linux 22.04
- Qt packages version 6.2.4+dfsg-2ubuntu1.1
Additional context
Manually adding these entries makes it compile and work. The OpenGL widget doesn't fill my 4k window, but ... I'll make another issue for that once I look a bit more into that!
Thanks for reporting this. Maybe you can give the cmake build also a try, it's quite new, and it supports the OpenGL build with -DOPENGL=ON.
cmake build worked fine, though I had to install the following extra packages (not required by qmake) for some reason:
- qt6-qmltooling-plugins
- qt6-tools-dev
- qt6-l10n-tools
- qt6-tools-dev-tools