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

Qt 5.4.0 does not compile statically with -opengl dynamic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.4.0, 5.7
    • Fix Version/s: 5.4.2, 5.7.0
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Commits:
      6a081125a5b1b7d629a2c6e16a696ecc06dbb427 5aeafcea467ced35adca1d762d38bfbba2b59e1f

      Description

      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.

        Attachments

        For Gerrit Dashboard: QTBUG-43993
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              lagocs Laszlo Agocs
              Reporter:
              hernan.c.martinez Hernan da Cunha Martinez
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes