Quantcast
Channel: Why QtCreator (qmake) links to different libraries than the ones listed on Kit's Qt version? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Why QtCreator (qmake) links to different libraries than the ones listed on Kit's Qt version?

$
0
0

I am trying to compile my Qt application and package it for distribution on QtCreator using qmake.

I have a single Kit, configured (whole config details on the table below) to link to the Qt libraries on my home folder, and still, once I compile it, it gives me the system libraries on ldd

How can I force Qt Creator to link with the Qt libraries that I configured it to, and not the system's?

ldd output

$ ldd proprietary_file_reversing2 | grep QtlibQt6Widgets.so.6 => /lib/x86_64-linux-gnu/libQt6Widgets.so.6 (0x00007fc5863c2000)libQt6Gui.so.6 => /lib/x86_64-linux-gnu/libQt6Gui.so.6 (0x00007fc585bd9000)libQt6Core.so.6 => /lib/x86_64-linux-gnu/libQt6Core.so.6 (0x00007fc5856a3000)libQt6DBus.so.6 => /lib/x86_64-linux-gnu/libQt6DBus.so.6 (0x00007fc584d8a000)

Kit's configuration on QtCreator

ABI:x86-linux-generic-elf-64bit
Source:/home/XXX/Qt/6/6.5.0/gcc_64
mkspec:linux-g++
qmake:/home/XXX/Qt/6/6.5.0/gcc_64/bin/qmake
Version:6.5.0
QMAKE_SPEClinux-g++
QMAKE_VERSION3.1
QMAKE_XSPEClinux-g++
QT_HOST_BINS/home/XXX/Qt/6/6.5.0/gcc_64/bin
QT_HOST_DATA/home/XXX/Qt/6/6.5.0/gcc_64
QT_HOST_LIBEXECS/home/XXX/Qt/6/6.5.0/gcc_64/libexec
QT_HOST_LIBS/home/XXX/Qt/6/6.5.0/gcc_64/lib
QT_HOST_PREFIX/home/XXX/Qt/6/6.5.0/gcc_64
QT_INSTALL_ARCHDATA/home/XXX/Qt/6/6.5.0/gcc_64
QT_INSTALL_BINS/home/XXX/Qt/6/6.5.0/gcc_64/bin
QT_INSTALL_CONFIGURATION
QT_INSTALL_DATA/home/XXX/Qt/6/6.5.0/gcc_64
QT_INSTALL_DEMOS/home/XXX/Qt/6/Examples/Qt-6.5.0
QT_INSTALL_DOCS/home/XXX/Qt/6/Docs/Qt-6.5.0
QT_INSTALL_EXAMPLES/home/XXX/Qt/6/Examples/Qt-6.5.0
QT_INSTALL_HEADERS/home/XXX/Qt/6/6.5.0/gcc_64/include
QT_INSTALL_LIBEXECS/home/XXX/Qt/6/6.5.0/gcc_64/libexec
QT_INSTALL_LIBS/home/XXX/Qt/6/6.5.0/gcc_64/lib
QT_INSTALL_PLUGINS/home/XXX/Qt/6/6.5.0/gcc_64/plugins
QT_INSTALL_PREFIX/home/XXX/Qt/6/6.5.0/gcc_64
QT_INSTALL_QML/home/XXX/Qt/6/6.5.0/gcc_64/qml
QT_INSTALL_TESTS/home/XXX/Qt/6/6.5.0/gcc_64/tests
QT_INSTALL_TRANSLATIONS/home/XXX/Qt/6/6.5.0/gcc_64/translations
QT_SYSROOT
QT_VERSION6.5.0

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>