Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
5.12.4
-
None
-
Windows; Static;
Description
Error: (and many more)
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um\GL/gl.h(1162): error C2375: 'glBindTexture': redefinition; different linkage
C:\vsts_work\1\s\installed\x64-windows-static\include\QtANGLE\GLES2/gl2.h(532): note: see declaration of 'glBindTexture'
Reason:
cl .... -DQT_STATIC_BUILD -DQGLVIEWER_STATIC -DNOMINMAX -DGL_APICALL= -DEGLAPI= -DQT_NO_KEYWORDS....
Solution:
delete the following line from /mkspecs/features/win32/opengl.prf
qtConfig(static): DEFINES += GL_APICALL= EGLAPI=
vcpkg fix:
https://github.com/microsoft/vcpkg/pull/7667/commits/5583ae7b9b2e0a0ec1e1e26a817b8fe20a1a89b0
For full vcpkg logs see https://dev.azure.com/vcpkg/public/_build/results?buildId=9381&view=results