Why qt6 would look for external libQt6Core.so.6 rather than its own built libQt6Core.so by default?
Unsolved
Qt 6
-
Hi, all:
I'm trying to build Qt6 from source under Ubuntu 22.04, with gcc
➜ build lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy ➜ build gcc --version gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
But, got the following ERROR messages:
[ 15%] Automatic QML type registration for target Qml cd /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml && ../../../qtbase/libexec/qmltyperegistrar --generate-qmltypes=/opt/qt/qt-everywhere-src-6.5.1/build/qtbase/qml/QtQml/Base/plugins.qmltypes --import-name=QtQml.Base --major-version=6 --minor-version=5 --follow-foreign-versioning @/opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/qmltypes/Qml_foreign_types.txt --private-includes -o /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/qml_qmltyperegistrations.cpp /opt/qt/qt-everywhere-src-6.5.1/build/qtdeclarative/src/qml/meta_types/qt6qml_release_metatypes.json ../../../qtbase/libexec/qmltyperegistrar: /usr/lib/x86_64-linux-gnu/libQt6Core.so.6: version `Qt_6.5' not found (required by ../../../qtbase/libexec/qmltyperegistrar) make[2]: *** [qtdeclarative/src/qml/CMakeFiles/Qml.dir/build.make:90: qtdeclarative/src/qml/qml_qmltyperegistrations.cpp] Error 1 make[2]: Leaving directory '/opt/qt/qt-everywhere-src-6.5.1/build' make[1]: *** [CMakeFiles/Makefile2:33713: qtdeclarative/src/qml/CMakeFiles/Qml.dir/all] Error 2 make[1]: Leaving directory '/opt/qt/qt-everywhere-src-6.5.1/build' make: *** [Makefile:149: all] Error 2 ➜ build find . -depth -iname "*.so" | grep Core ./qtbase/lib/libQt6Core5Compat.so ./qtbase/lib/libQt6QmlCore.so ./qtbase/lib/libQt6Core.so ./qtbase/lib/libQt63DCore.so ./qtbase/qml/QtCore/libqtqmlcoreplugin.so ./qtbase/qml/Qt3D/Core/libquick3dcoreplugin.so
Don't know if anywhere suggested to look for
/usr/lib/x86_64-linux-gnu/libQt6Core.so.6
FIRST before local./qtbase/lib/libQt6Core.so
? -
@jiapei100 what is your
configure
line? -
@jiapei100 I don't even know what to look for there. I do know what to do with a configure call.
-
@jiapei100 check here out about configure settings:
http://bin.ceicer.com/qt/Linux/Just curious: why do you want to build 6.5.1 on Ubuntu 22.04? You can simply install it.