Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94040

QtSvg and QtQuickWidgets depend on libOpenGl instead of libGL

    XMLWordPrintable

Details

    • Linux/X11
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jbornema Joerg Bornemann
              spiderkeys Charles Cross
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes