Howto build for Sailfish OS - Karry/osmscout-sailfish GitHub Wiki

With recent SailfishOS SDK build should be seamless. If something doesn't work for you, carefully read Building Sailfish OS packages manually and inspect sfdk --help-building. When you will need help, fill the issue on Github.

Steps:

Sailfish SDK

  • Install SailfishOS SDK on your machine. This howto expect that it is installed in default location - your home directory.
  • Create projects directory and checkout osmscout-sailfish:
mkdir -p ~/SailfishOS/projects/
cd ~/SailfishOS/projects/
git clone --recursive https://github.com/Karry/osmscout-sailfish.git osmscout-sailfish
cd osmscout-sailfish

Setup build environment

# add sfdk to PATH
PATH=$PATH:~/SailfishOS/bin/

sfdk config "no-fix-version"

# setup target OS version and architecture, see "sfdk tools list"
sfdk config "target=SailfishOS-5.0.0.62-aarch64"

Build RPM packages

sfdk build --enable-debug

Deploy packages to your device

First, setup your device in SailfishOS SDK (QtCreator), you can deploy packages from the terminal:

# setup your target device name, when you are not sure, look to "sfdk device list" output
sfdk config "device=Xperia"
sfdk deploy --sdk --debug