Sailfish Framework

Sailfish OS is a general-purpose mobile operating system based on Linux. It combines middleware with open source code, user interface, and other third-party components. Sailfish OS Sailfish SDK are based on Linux and Mer cores. Sailfish OS includes a multi-task graphical shell based on the Wayland server protocol and can run Andriod applications via a proper compatibility mode.

Sailfish SDK uses Qt with VirtualBox to develop, compile and emulate Sailfish OS. Such method enables the user to test developed software on a virtual machine, isolates development from other computer processes, and leaves the system unchanged after development and testing.

To connect the Sailfish framework to a mobile application development project:

  1. Set up developer environment for Sailfish OS.

  2. Add string to the root file with the *.pro extension after the project is created:

LIBS += -L<path to library folder> -lhhive -ldl -lcurl -lcrypto -lz

INCLUDEPATH += <path to header files folder>

  1. Install the additional curl crypto libraries:

3.1.  Connect a compiler machine using the command:

ssh -p 2222 -i <installation path>/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost

3.2.  Get a list of supported compilation platforms using the command:

sdk-assistant list

After the command is executed, the response is obtained, for example:

SailfishOS-3.0.0.8
SailfishOS-3.0.0.8-armv7hl
SailfishOS-3.0.0.8-i486

3.3.  Install the packages openssl-devel and curl-devel using the command:

sb2 -t <platform name> -m sdk-install -R zypper install <package name>

Example of request:

sb2 -t SailfishOS-3.0.0.8-i486 -m sdk-install -R zypper install curl-devel

To initialize and set up Sailfish, see the Initializing and Setting Up Sailfish Framework section.

For details about Sailfish framework methods see the Describing Sailfish Framework Methods section.

See also:

Development | Initializing and Setting Up Sailfish Framework | Auxiliary Classes | Describing Sailfish Framework Methods