[SOLVED] Qt 5.4.0 does not compile statically with -opengl dynamic
Qt 5.4 introduced the very nice '-opengl dynamic' switch to the configure script, but when building with the following configure switches:
@-debug-and-release -c++11 -static -ltcg -opengl dynamic -target xp -no-icu -no-angle -mp -nomake examples@
I get a compile error:
@.\qwindowseglcontext.cpp(236) : error C2039: 'glActiveTexture' : is not a member of '`global namespace''@
and several other lines in that init() method saying that 'glActiveTexture' and many others do not belong to the global namespace.
Based on the code of the RESOLVE() macro it seems that compiling Qt statically doesn't honor the dynamic binding to the OpenGL library stated by '-opengl dynamic' configure switch.
I've noticed you have created a Jira issue for this - good. But I don't understand why is it closed already?
I closed it because I created it as a Suggestion and I wanted to create a Bug. And it didn't let me change the report type after creation. you can find it here now: https://bugreports.qt.io/browse/QTBUG-43993
In the future, you can leave a note to ask a moderator to change it.
Glad to know, :)
And it has been fixed \o/ https://codereview.qt-project.org/#/c/103908/
It was accepted after the 5.4.1 downmerge so it will be in 5.4.2