Skip to content

Howto build for Sailfish OS

Karas Lukáš edited this page Dec 14, 2017 · 8 revisions

Before you start, you should know that build process is little bit commplicated. If something don't work for you, read carefully following articles:

Steps:

  • 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
  • Start Mer SDK and SailfishOS Emulator virtual machines:
VBoxManage startvm "SailfishOS Emulator" 
VBoxHeadless -startvm "Sailfish OS Build Engine"
  • Connect to SDK vm
ssh mersdk@localhost -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk
  • Install cmake and elf tools in SDK vm:
sb2 -t SailfishOS-armv7hl -m sdk-install -R zypper in cmake patchelf chrpath
sb2 -t SailfishOS-i486    -m sdk-install -R zypper in cmake patchelf chrpath
  • Compile project inside SDK vm:
cd /home/src1/osmscout-sailfish/
mkdir -p build-SailfishOS-i486
cd build-SailfishOS-i486
sb2 -t SailfishOS-i486 -m sdk-build cmake ..
sb2 -t SailfishOS-i486 -m sdk-build make

cd /home/src1/osmscout-sailfish/
mkdir -p build-SailfishOS-armv7hl
cd build-SailfishOS-armv7hl
sb2 -t SailfishOS-armv7hl -m sdk-build cmake ..
sb2 -t SailfishOS-armv7hl -m sdk-build make
  • Build rpm packages inside SDK vm:
cd /home/src1/osmscout-sailfish/
mb2 -t SailfishOS-i486 build
mb2 -t SailfishOS-armv7hl build
Clone this wiki locally