Closed AlbertoCasasOrtiz closed 3 years ago
Deployment in Linux requires the use of an external tool named linuxdeployqt. Working version is 5.
Deployment instructions:
Copy generated binaries to a separated folder.
Execute linuxdeployqt, indicating the qml directory. The qml directory is the directory containing the first qrc file.
./path/to/linuxdeployqt.appimage /path/to/generated/binary --qmldir=/path/to/qml/dir
./linuxdeployqt-5-x86_64.AppImage wfes-gui/wfes-ui -qmldir=/home/alberto/Workspaces/Qt/wfes/wfes-ui/
libiomp5.so
libmkl_avx.so
libmkl_avx2.so
libmkl_core.so
libmkl_intel_ilp54.so
libmkl_intel_thread.so
libmkl_vml_avx.so
libmkl_vml_avx2.so
A common problem could be linuxdeployqt not recognizing the Qt libraries, indicating that it is not the correct version. This can be solver either by adding to PATH the path of the correct Qt libraries (Inside the installed Qt folder), or by coping the libraries of the correct version inside the system lib folder.
Another problem could be due to linuxdeployqt not recognizing any other library, apply same solution as before.
Packaging instructions:
For creating an AppImage file, that has everything necessary inside and can be executed, add the flags -appimage -bundle-non-qt-libs -always-overwrite
to the line of linuxdeployqt when deploying.
For creating an installer (that can be used for managing updates, install and uninstall the application), follow same instructions as in windows.
Deploy the application for Linux.