![]() ![]() For Windows and MacOS Qt provides a special tools: windeployqt and macdeployqt.įor Linux however there's no official tool but you can take a look at the unofficial linuxdeployqt. There's more to building a distributable Qt application than just changing the libraries - see documentation. The fixup_bundle command from BundleUtilities module is only changing the dynamic library load paths and copying the necessary to the bundle. If this is not enough then the goto way is to modify the PATH variable before executing your CMake command like so: export PATH=~/Qt5.12.2/5.12.2/gcc_64:$PATHĪ good practice here is to have a system-wide environment variable called QTDIR pointing to the proper installation of Qt (e.g. Libicudata.so.63 => /lib64/libicudata.so.63 (0x00007f1d8afd0000)ĬMakeLists.txt cmake_minimum_required(VERSION 3.10 FATAL_ERROR) platforms/libqxcb.so: /lib64/libQt5Gui.so.5: version `Qt_5_PRIVATE_API' not found (required by. platforms/libqxcb.so: /lib64/libQt5XcbQpa.so.5: version `Qt_5_PRIVATE_API' not found (required by. Ldd /build/install/platforms/libqxcb.so shows it links to the system Qt library, which is not the one my project built against on. Ldd ~/qt/5.12.2/gcc_64/plugins/platforms/libqxcb.so shows that the original libqxcb.so links the libraries that come with the Qt installation: libQt5XcbQpa.so.5 => /home/giokka/qt/5.12.2/gcc_64/plugins/platforms/././lib/libQt5XcbQpa.so.5 (0x00007ff8936d7000) Then, I found some information by testing the two libqxcb.so with ldd, although I'm not sure this is the actual cause. Qrc:/main.qml:2:1: module "QtQuick.Layouts" is not installed Qrc:/main.qml:5:1: module "" is not installed Qrc:/main.qml:3:1: module "QtQuick.Controls" is not installed Qrc:/main.qml:1:1: module "QtQuick" is not installed One interesting thing I found though is that when I set Plugins = /home//qt/5.12.2/gcc_64/plugins, a little Qt window shows, but comes with a bunch of error messages: qrc:/main.qml:4:1: module "QtQuick.Dialogs" is not installed I've also tried qt.conf and set the Prefix and Plugin path to. Reinstalling the application may fix this problem. This application failed to start because no Qt platform plugin could be initialized. And this is the error message when the executable run: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. In order to test the standalone package, I change ~/Qt5.12.2 into ~/qt. I've followed some answers and have copied platform/libqxcb.so and libQt5XcbQpa.so.5 into the install directory. And I assume that the install directory should become a standalone app that can be copied and run on other computers without Qt installed? I'm not sure about the role of CPack here. As far as I know, all the dependencies can be resolved at the install step with fixup_bundle macro. I'm trying to setting up a standalone binary archive (.tar.gz) that can run on most Linux distros (ex.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |