Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL qmake build on Ubuntu 22.04 missing #244

Open
trathborne opened this issue Jan 22, 2024 · 2 comments
Open

OpenGL qmake build on Ubuntu 22.04 missing #244

trathborne opened this issue Jan 22, 2024 · 2 comments

Comments

@trathborne
Copy link

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!

@kovzol
Copy link
Contributor

kovzol commented Jan 24, 2024

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.

@trathborne
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants