Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Qt6 linking change

Qt6 linking change

Scheduled Pinned Locked Moved Solved C++ Gurus
3 Posts 2 Posters 393 Views
  • 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.
  • JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by
    #1

    I notice under Linux/gcc the linker line on my applications for old Qt5 (Ubuntu 22.04) ended with -lGL while for new Qt6 (Ubuntu 24.04) it's -lGLX -lOpenGL.

    Is this just a change in libraries supplied or is it an actual change in behaviour? I don't think I have any interest in OpenGL (simple widget applications only), did I somehow (inadvertently) configure to elect to use this or is it an expected, no-op change?

    S 1 Reply Last reply
    0
    • JonBJ JonB

      I notice under Linux/gcc the linker line on my applications for old Qt5 (Ubuntu 22.04) ended with -lGL while for new Qt6 (Ubuntu 24.04) it's -lGLX -lOpenGL.

      Is this just a change in libraries supplied or is it an actual change in behaviour? I don't think I have any interest in OpenGL (simple widget applications only), did I somehow (inadvertently) configure to elect to use this or is it an expected, no-op change?

      S Online
      S Online
      SimonSchroeder
      wrote on last edited by
      #2

      @JonB said in Qt6 linking change:

      I don't think I have any interest in OpenGL (simple widget applications only)

      Even simple widgets uses OpenGL to be faster. So, you should have an interest in OpenGL 😉

      From a quick search my understanding is the following: libGL.so got bloated over time and is now called legacy GL. libOpenGL.so tries to be a little cleaner with just a small set of functions exported. This is also why you need libGLX.so to find other OpenGL functions (OpenGL likes to use function pointers together with a search mechanism). So, if my understanding of this is correct, GLX+OpenGL just supersedes GL.

      JonBJ 1 Reply Last reply
      3
      • S SimonSchroeder

        @JonB said in Qt6 linking change:

        I don't think I have any interest in OpenGL (simple widget applications only)

        Even simple widgets uses OpenGL to be faster. So, you should have an interest in OpenGL 😉

        From a quick search my understanding is the following: libGL.so got bloated over time and is now called legacy GL. libOpenGL.so tries to be a little cleaner with just a small set of functions exported. This is also why you need libGLX.so to find other OpenGL functions (OpenGL likes to use function pointers together with a search mechanism). So, if my understanding of this is correct, GLX+OpenGL just supersedes GL.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @SimonSchroeder Thanks, that's great to know. Marking yours as solution.

        1 Reply Last reply
        0
        • JonBJ JonB has marked this topic as solved on

        • Login

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