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

[Qt 6 REG] QtWebEngineProcess attempts to use system-wide libraries only

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.2.0 Beta3
    • WebEngine
    • None
    • Linux/X11

    Description

      It looks like with Qt 6, QtWebEngineProcess always attempts to use system-wide libraries instead of using the installed copy (via rpath, I think?) correctly.

      I don't have a system-wide install of a Qt 6 QtWebEngine, and observe the following behavior:

      When building the Simple Browser example in Qt Creator with Qt 5.15.3, running [...]/Qt/Examples/Qt-5.15.2/webenginewidgets/simplebrowser/simplebrowser manually outside of Qt creator works fine, and ldd confirms that QtWebEngineProcess uses the installed libraries:

      $ ldd [...]/Qt/5.15.2/gcc_64/libexec/QtWebEngineProcess
      	[...]
      	libQt5Gui.so.5 => [...]/Qt/5.15.2/gcc_64/libexec/../lib/libQt5Gui.so.5 (0x00007f4e73550000)
      	[...]
      	libQt5WebEngineCore.so.5 => [...]/Qt/5.15.2/gcc_64/libexec/../lib/libQt5WebEngineCore.so.5 (0x00007f4e6af73000)
      

      When trying to do the same with the Qt 6.2 Beta, running Simple Browser from Qt Creator works, but running it manually fails with:

      $ [...]/Qt/Examples/Qt-6.2.0/webenginewidgets/build-simplebrowser-Desktop_Qt_6_2_0_GCC_64bit-Debug/simplebrowser
      [...]/Qt/6.2.0/gcc_64/libexec/QtWebEngineProcess: error while loading shared libraries: libQt6WebEngineCore.so.6: cannot open shared object file: No such file or directory
      [...]/Qt/6.2.0/gcc_64/libexec/QtWebEngineProcess: error while loading shared libraries: libQt6WebEngineCore.so.6: cannot open shared object file: No such file or directory
      [2]    287433 trace trap (core dumped)  
      

      and ldd confirms that QtWebEngineProcess doesn't respect the Qt install location at all, instead trying to use the system-wide libraries only:

      $ ldd [...]/Qt/6.2.0/gcc_64/libexec/QtWebEngineProcess
      [...]/Qt/6.2.0/gcc_64/libexec/QtWebEngineProcess: /usr/lib/libQt6Core.so.6: version `Qt_6.2' not found (required by [...]/Qt/6.2.0/gcc_64/libexec/QtWebEngineProcess)
      	[...]
      	libQt6Gui.so.6 => /usr/lib/libQt6Gui.so.6 (0x00007fc6632bd000)
      	[...]
      	libQt6WebEngineCore.so.6 => not found
      

      Attachments

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              the compiler Florian Bruhin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes