Build cross Qt library and use in different Desktop
-
Hi,
We have successfully cross compile qt for imx6 and installed in my desktop. We can able to successfully cross compile qt application in my laptop.
Now We want to use same cross library in other desktop but we are facing issue for path that has set at configuration time.
We have checked path of all qt variable using "qmake -query" it shows my local path so i can not use qt cross lib by simple copy,paste and give permission.output of qmake -query:
$ ./qmake -query QT_SYSROOT: QT_INSTALL_PREFIX:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib QT_INSTALL_ARCHDATA:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib QT_INSTALL_DATA:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib QT_INSTALL_DOCS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/doc QT_INSTALL_HEADERS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/include QT_INSTALL_LIBS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/lib QT_INSTALL_LIBEXECS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/libexec QT_INSTALL_BINS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/bin QT_INSTALL_TESTS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/tests QT_INSTALL_PLUGINS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/plugins QT_INSTALL_IMPORTS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/imports QT_INSTALL_QML:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/qml QT_INSTALL_TRANSLATIONS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/translations QT_INSTALL_CONFIGURATION:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/etc/xdg QT_INSTALL_EXAMPLES:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/examples QT_INSTALL_DEMOS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/examples QT_HOST_PREFIX:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib QT_HOST_DATA:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib QT_HOST_BINS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/bin QT_HOST_LIBS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/lib QMAKE_SPEC:linux-g++ QMAKE_XSPEC:devices/linux-imx6-g++ QMAKE_VERSION:3.0 QT_VERSION:5.7.1
QT is also use this path lot more in lib folder.
Is there any way we can compile qt library in one Desktop and able to use in different desktop for cross compiling?
Thank you,
Jignesh Patel -
Hi,
You need a more recent version of Qt to make it relocatable.
You really should consider it, Qt 5.7.1 is more than outdated and not even an LTS release.
-
Thank you for reply @SGaist ,
we are at a stage and can not change the qt revision.
I got a solution for another way by copying and past the QT library and toolchain on the same path on all desktops.Best Regard,
Jignesh Patel