Deploying Linux to SailfishOS - therecipe/qt GitHub Wiki
Docker deployment
-
Install Docker: https://store.docker.com/search?offering=community&type=edition or using a package manager
-
If necessary run docker as root
-
Pull the target image
docker pull therecipe/qt:sailfish
- Deploy your application
qtdeploy -docker build sailfish
or
qtdeploy -docker build sailfish-emulator
You should find your deployed application inside the deploy
subfolder.
Regular deployment
-
Install the [official version of Qt (<= 5.7.x)](/therecipe/qt/wiki/Installation-on-Linux#official-version-with-android-support) (https://download.qt.io/archive/qt/)
-
Export the environment variable
QT_VERSION=5.7.x
-
Install VirtualBox: https://www.virtualbox.org/wiki/Linux_Downloads
If you have to, you can also define a custom location with VIRTUALBOX_DIR
- Install the SailfishOS SDK: https://releases.sailfishos.org/sdk/installers/2.1.1/SailfishSDK-2.1.1-linux64-offline.run
If you have to, you can also define a custom location with SAILFISH_DIR
- If you haven't already, run the setup for sailfish
qtsetup full sailfish && qtsetup full sailfish-emulator
- Deploy your application
qtdeploy build sailfish
or
qtdeploy build sailfish-emulator
You should find your deployed application inside the deploy
subfolder.