Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.1.0
-
None
-
x86_64
Ubuntu 20.04
Cmake 3.20.1
-
-
20feedac95c519c71d4db93ab28ad1a110dfbcca (qt/qtbase/dev) de86dac33c3859af54a39beb3deb1561cc750c12 (qt/qtbase/6.1)
Description
Note: I initially posted this information in QTBUG-89754 but wasn't sure if it would have any visibility due to already being closed/resolved, so I thought it would be best to open a new ticket. Details from that issue copied below:
Hi all, having a hard time trying to understand whether or not this has been fixed/what the final decisions were around the correct behaviour.
I've tried pretty much all of the Qt6.0.x and Qt6.1.x releases on Ubuntu 20.04 and the issue with libOpenGL.so.0 being required still seems to exist for some of the libraries, such as QtSvg and QtQuickWidgets:
ldd ~/Qt6.1.1/6.1.1/gcc_64/lib/libQt6Svg.so | grep libOpenGL libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f18d85f4000) ldd ~/Qt6.1.1/6.1.1/gcc_64/lib/libQt6QuickWidgets.so | grep libOpenGL libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f904a1e3000)
Qt6Gui looks like it no longer has this dependency, as I would expect from the discussion here.
We are trying to target Ubuntu 20.04 with an out-of-the-box, no-apt-installs-required AppImage, and this is a sticking point, requiring the user to install libopengl0 before being able to run the AppImage. I've confirmed that if I build Qt6.1.x and all of its modules from source, I end up with zero dependencies on libOpenGL, though it would be great to be able to use official binaries.
Any clarity on the matter is appreciated!
Attachments
Issue Links
- relates to
-
QTBUG-89754 Reg->6.0/Linux/CMake build : QtGui has dependency on libopengl0 and opengl headers
- Open