dekoning-lab / WFES2-GUI

GUI implementation of wfes2.
GNU General Public License v3.0
0 stars 1 forks source link

Deploy for Linux #17

Closed AlbertoCasasOrtiz closed 3 years ago

AlbertoCasasOrtiz commented 4 years ago

Deploy the application for Linux.

AlbertoCasasOrtiz commented 3 years ago

Deployment in Linux requires the use of an external tool named linuxdeployqt. Working version is 5.

Deployment instructions:

  1. Copy generated binaries to a separated folder.

  2. 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/
  1. Copy the required libraries in the generated folder named lib:
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
  1. If the program is not working as expected, execute from console to see errors.

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.

AlbertoCasasOrtiz commented 3 years ago

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.