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
Forum Updated to NodeBB v4.3 + New Features

Qt6 linking change

Scheduled Pinned Locked Moved Solved C++ Gurus
3 Posts 2 Posters 548 Views 3 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.
  • J Offline
    J Offline
    JonB
    wrote on 7 Sept 2024, 13:13 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 9 Sept 2024, 07:57
    0
    • J JonB
      7 Sept 2024, 13:13

      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 Offline
      S Offline
      SimonSchroeder
      wrote on 9 Sept 2024, 07:57 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.

      J 1 Reply Last reply 9 Sept 2024, 09:07
      3
      • S SimonSchroeder
        9 Sept 2024, 07:57

        @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.

        J Offline
        J Offline
        JonB
        wrote on 9 Sept 2024, 09:07 last edited by
        #3

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

        1 Reply Last reply
        0
        • J JonB has marked this topic as solved on 9 Sept 2024, 09:07

        1/3

        7 Sept 2024, 13:13

        • Login

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