Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] Qt 5.4.0 does not compile statically with -opengl dynamic
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt 5.4.0 does not compile statically with -opengl dynamic

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 3 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hernan.c.martinez
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I've noticed you have created a Jira issue for this - good. But I don't understand why is it closed already?

      (Z(:^

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hernan.c.martinez
        wrote on last edited by
        #3

        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

        Thanks :)

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          In the future, you can leave a note to ask a moderator to change it.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hernan.c.martinez
            wrote on last edited by
            #5

            Glad to know, :)

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hernan.c.martinez
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved