Skip to content

Qt: Fix including GL/gl.h through Qt headers#10990

Open
ubruhin wants to merge 1 commit intoslint-ui:masterfrom
LibrePCB:fix-qt-opengl-include
Open

Qt: Fix including GL/gl.h through Qt headers#10990
ubruhin wants to merge 1 commit intoslint-ui:masterfrom
LibrePCB:fix-qt-opengl-include

Conversation

@ubruhin
Copy link
Contributor

@ubruhin ubruhin commented Mar 10, 2026

Make sure that GL/gl.h is never included, as this would lead to compile errors on systems where this file is not found.

I did not only remove the #include <QtWidgets/QtWidgets> which caused the problem, but also now passing -DQT_NO_OPENGL to be really sure the same problem doesn't (accidentally) occur again. I verified that -DQT_NO_OPENGL alone would already fix the compile error on OpenBSD.

Fixes #10989

Make sure that GL/gl.h is never included, as this would lead to compile
errors on systems where this file is not found.

Fixes slint-ui#10989
@ubruhin ubruhin force-pushed the fix-qt-opengl-include branch from e8122df to 7f6d238 Compare March 10, 2026 13:07
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

Successfully merging this pull request may close these issues.

Qt backend on BSD fails to compile due to 'GL/gl.h' not found

1 participant