Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76087

Linking issues with Angle on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12.0, 5.12.3
    • Fix Version/s: 5.12.4
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Environment:
      Windows 10
    • Platform/s:
      Windows
    • Commits:
      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.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            owolff Oliver Wolff
            Reporter:
            bacarozzo Federico
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes