Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.0, 5.12.3
-
None
-
Windows 10
-
-
91d2905f438072ac63bbc01000369aa0b5795cc8 in 5.12.4
Description
While compiling qnanopainter we received "undefined reference" errors with Qt 5.12.x MinGW whereas compilation worked fine on Qt 5.9.x MinGW.
This is a snippet of the errors, all related to the lib "libGLESv2d":
libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0x12b): undefined reference to `_imp__glDeleteTextures@8' libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0x1b4): undefined reference to `glDeleteShader@4' libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0x1d5): undefined reference to `glDeleteBuffers@8' libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0x1e5): undefined reference to `glDeleteShader@4' libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0x1f5): undefined reference to `glDeleteProgram@4' libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0x988): undefined reference to `_imp__glBindTexture@8' libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0x9a0): undefined reference to `_imp__glPixelStorei@8' libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0x9fc): undefined reference to `_imp__glTexSubImage2D@36' libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0xa43): undefined reference to `_imp__glBindTexture@8' libqnanopainter.a(qnanobackendgles2.cpp.o):qnanobackendgles2.cpp:(.text+0x1361): undefined reference to `_imp__glDeleteTextures@8'
As it turned out, the "def" files for "libGLESv2d" seems to be off in Qt 5.12.x. The 32 bit def file duplicates the 64 bit one lacking the correct function namings. E.g. "glBindTexture@8" is just "glBindTexture" and so on. Def file from Qt 5.9.x contains the correct naming, spotted in the errors above.
Further details can be found in the mailing list.