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

Qt 6.0 dev error build from sources linux error: /qt5/qtbase/bin/qvkgen: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 6.0.0, 6.0
    • Build System
    • None
    • linux
    • Linux/X11

    Description

      I build in linux dev version of Qt 6.0

      g++ -Wl,--no-undefined -Wl,--version-script,QtNetwork.version -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt6Network.so.6 -o libQt6Network.so.6.0.0 .obj/qnetworkaccessauthenticationmanager.o .obj/qnetworkaccessmanager.o .obj/qnetworkaccesscache.o .obj/qnetworkaccessbackend.o .obj/qnetworkaccessdebugpipebackend.o .obj/qnetworkaccessfilebackend.o .obj/qnetworkaccesscachebackend.o .obj/qnetworkcookie.o .obj/qnetworkcookiejar.o .obj/qnetworkrequest.o .obj/qnetworkreply.o .obj/qnetworkreplyimpl.o .obj/qnetworkreplydataimpl.o .obj/qnetworkreplyfileimpl.o .obj/qabstractnetworkcache.o .obj/qnetworkfile.o .obj/qhsts.o .obj/qhstspolicy.o .obj/qnetworkdiskcache.o .obj/qhstsstore.o .obj/bitstreams.o .obj/huffman.o .obj/hpack.o .obj/hpacktable.o .obj/http2frames.o .obj/http2streams.o .obj/http2protocol.o .obj/qabstractprotocolhandler.o .obj/qhttp2protocolhandler.o .obj/qhttpmultipart.o .obj/qhttpnetworkconnection.o .obj/qhttpnetworkconnectionchannel.o .obj/qhttpnetworkheader.o .obj/qhttpnetworkreply.o .obj/qhttpnetworkrequest.o .obj/qhttpprotocolhandler.o .obj/qhttpthreaddelegate.o .obj/qnetworkreplyhttpimpl.o .obj/qhttp2configuration.o .obj/qauthenticator.o .obj/qhostaddress.o .obj/qhostinfo.o .obj/qnetworkdatagram.o .obj/qnetworkinterface.o .obj/qnetworkproxy.o .obj/qtldurl.o .obj/qdnslookup.o .obj/qdnslookup_unix.o .obj/qhostinfo_unix.o .obj/qnetworkinterface_linux.o .obj/qnetconmonitor_stub.o .obj/qnetworkproxy_generic.o .obj/qabstractsocketengine.o .obj/qabstractsocket.o .obj/qtcpsocket.o .obj/qudpsocket.o .obj/qtcpserver.o .obj/qsocks5socketengine.o .obj/qhttpsocketengine.o .obj/qnativesocketengine.o .obj/qnativesocketengine_unix.o .obj/qlocalsocket.o .obj/qlocalserver.o .obj/qlocalsocket_unix.o .obj/qlocalserver_unix.o .obj/qasn1element.o .obj/qssl.o .obj/qsslcertificate.o .obj/qsslcertificateextension.o .obj/qsslconfiguration.o .obj/qsslcipher.o .obj/qssldiffiehellmanparameters.o .obj/qsslellipticcurve.o .obj/qsslkey_p.o .obj/qsslerror.o .obj/qsslsocket.o .obj/qsslpresharedkeyauthenticator.o .obj/qocspresponse.o .obj/qdtls.o .obj/qsslsocket_openssl_symbols.o .obj/qssldiffiehellmanparameters_openssl.o .obj/qsslcertificate_openssl.o .obj/qsslellipticcurve_openssl.o .obj/qsslkey_openssl.o .obj/qsslsocket_openssl.o .obj/qsslcontext_openssl.o .obj/qdtls_openssl.o .obj/qpassworddigestor.o .obj/moc_qnetworkaccesscache_p.o .obj/moc_qnetworkaccessbackend_p.o .obj/moc_qnetworkaccessdebugpipebackend_p.o .obj/moc_qnetworkaccessfilebackend_p.o .obj/moc_qnetworkcookiejar.o .obj/moc_qnetworkreply.o .obj/moc_qabstractnetworkcache.o .obj/moc_qnetworkfile_p.o .obj/moc_qnetworkdiskcache.o .obj/moc_qhttp2protocolhandler_p.o .obj/moc_qhttpmultipart.o .obj/moc_qhttpnetworkreply_p.o .obj/moc_qhttpthreaddelegate_p.o .obj/moc_qnetworkreplyhttpimpl_p.o .obj/moc_qhostinfo_p.o .obj/moc_qnetworkproxy.o .obj/moc_qnetconmonitor_p.o .obj/moc_qdnslookup_p.o .obj/moc_qtcpsocket.o .obj/moc_qudpsocket.o .obj/moc_qsslerror.o .obj/moc_qdtls.o  -L/usr/lib/x86_64-linux-gnu/ /qt5/qtbase/lib/libQt6Core.so -lpthread /qt5/qtbase/lib/libQt6Core.so -L/lib -lssl -lcrypto -ldl -lpthread
      ln -s libQt6Network.so.6.0.0 libQt6Network.so
      ln -s libQt6Network.so.6.0.0 libQt6Network.so.6
      ln -s libQt6Network.so.6.0.0 libQt6Network.so.6.0
      rm -f ../../lib/libQt6Network.so.6.0.0
      mv -f libQt6Network.so.6.0.0 ../../lib/libQt6Network.so.6.0.0
      rm -f ../../lib/libQt6Network.so
      rm -f ../../lib/libQt6Network.so.6
      rm -f ../../lib/libQt6Network.so.6.0
      mv -f libQt6Network.so ../../lib/libQt6Network.so
      mv -f libQt6Network.so.6 ../../lib/libQt6Network.so.6
      mv -f libQt6Network.so.6.0 ../../lib/libQt6Network.so.6.0
      make[3]: Leaving directory '/qt5/qtbase/src/network'
      make[3]: Entering directory '/qt5/qtbase/src/gui'
      /qt5/qtbase/src/gui/qvkgen_wrapper.sh vulkan/vk.xml /qt5/qtbase/header.LGPL vulkan/qvulkanfunctions
      perl /qt5/qtbase/mkspecs/features/data/unix/findclasslist.pl < QtGui.version.in > QtGui.version
      /qt5/qtbase/bin/qvkgen: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
      make[3]: *** [Makefile:2205: vulkan/qvulkanfunctions.h] Error 127
      make[3]: *** Waiting for unfinished jobs....
      g++ -pipe -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fno-exceptions -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -fPIC -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DMD4C_USE_UTF8 -DENABLE_PIXMAN_DRAWHELPERS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_GUI_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -I../3rdparty/md4c -I../3rdparty/zlib/src -I../3rdparty/VulkanMemoryAllocator -I../../include -I../../include/QtGui -I../../include/QtGui/6.0.0 -I../../include/QtGui/6.0.0/QtGui -I.tracegen -I/usr/include/libdrm -I../../include/QtCore/6.0.0 -I../../include/QtCore/6.0.0/QtCore -I../../include/QtCore -I../../include/QtDBus -I.moc -I../3rdparty/libpng -I../3rdparty/harfbuzz-ng/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/xcb -I/usr/include/xcb -I../../mkspecs/linux-g++ -x c++-header -c kernel/qt_gui_pch.h -o .pch/Qt6Gui.gch/c++
      make[3]: Leaving directory '/qt5/qtbase/src/gui'
      make[2]: *** [Makefile:558: sub-gui-make_first] Error 2
      make[2]: Leaving directory '/qt5/qtbase/src'
      make[1]: *** [Makefile:51: sub-src-make_first] Error 2
      make[1]: Leaving directory '/qt5/qtbase'
      make: *** [Makefile:94: module-qtbase-make_first] Error 2
      
      

      Env: debian 10

      commit on qt5 repository:

      commit e40b12af186f5bb6f28e91fabac74c9a7d365333 (HEAD -> dev, origin/dev, origin/HEAD)
      Author: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
      Date:   Fri Jun 26 17:08:21 2020 +0300    Update submodules on 'dev' in qt/qt5
          
          Change-Id: I195fa0ce77f1dd176c74cdf7d8b34f88fd8def42
          Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>

       

      export OPENSSL_LIBS="-L$OPENSSL_DIR/lib -lssl -lcrypto -ldl -lpthread"
      ./configure -openssl-linked -skip qt3d -no-warnings-are-errors -release -recheck-all -prefix /home/rgaraev/Qt5132/Static5150 -opensource -confirm-license -nomake examples -nomake tests -c++std c++17 -I /usr/include/xcb/ -L /usr/lib/x86_64-linux-gnu/ -xcb-xlib -xcb -feature-thread -feature-xkbcommon -qt-libpng -qt-libjpeg -qt-zlib -I /usr/include/xcb/ -L /usr/lib/x86_64-linux-gnu/ 

      config.summary

      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
              homdx Homdx Homdx
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes