Qt6 linking change
-
wrote on 7 Sept 2024, 13:13 last edited by
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?
-
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?
wrote on 9 Sept 2024, 07:57 last edited by@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.
-
@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.
wrote on 9 Sept 2024, 09:07 last edited by@SimonSchroeder Thanks, that's great to know. Marking yours as solution.
-
1/3