Skip to content

BuildingInstructions

Raine Mäkeläinen edited this page Sep 21, 2016 · 5 revisions

Using Sailfish OS Application SDK for building

Building for arm (device):

  1. Grab source (replace user_name with your user name)
    # Following path is an example path and used throughout the build instructions.
    mkdir -p /home/<user_name>/workspace/sailfishos
    cd /home/<user_name>/workspace/sailfishos
    git clone https://github.com/sailfishos/sailfish-browser.git sailfish-browser

  2. Start MerSDK build engine from SailfishOS SDK or VirtualBox Manager

  3. Connect to build engine
    ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost

  4. Add 'apps' repository that provides needed middleware libraries; qtmozembed-qt5, embedlite-components-qt5, and xulrunner-qt5
    sb2 -t SailfishOS-armv7hl -m sdk-install -R ssu ar apps
    sb2 -t SailfishOS-armv7hl -m sdk-install -R zypper ref

  5. And then build
    cd /home/mersdk/share/workspace/sailfishos/sailfish-browser
    mb2 -t SailfishOS-armv7hl -s rpm/sailfish-browser.spec build

After building rpm packages for armv7hl are at /home/<user_name>/workspace/sailfishos/sailfish-browser/RPMS.

Deploy to device:

  1. Copy rpm packages to device
    scp /home/<user_name>/workspace/sailfishos/sailfish-browser/RPMS/* nemo@<device-ip>:

  2. SSH to device ssh nemo@<device-ip>

  3. Install your Sailfish Browser build (will install also dependencies)
    pkcon install zypper
    cd /home/nemo
    zypper in sailfish-browser-*

Please familiarize yourself with Sailfish OS Application SDK. See also Sailfish OS Application SDK FAQ.