answered
2016-05-31 17:44:42 +0300
Connect by ssh to the merSDK VM (adjust $INSTALL according to your installation path) :
ssh -i $INSTALL/SailfishOS/vmshare/ssh/private_keys/engine/mersdk -p 2222 mersdk@localhost
Copy your source to /home/deploy and go there.
Then, if your project has a spec file for rpm building do :
mb2 -t SailfishOS-armv7hl -s rpm/my_software.spec build
It will download all necessary dependencies and build the rpm for you. Then you can copy the rpm to the emulator and install it to test.
If you don't have a rpm spec file, you'll have to do it by hand :
- Install dependencies by login to scratchbox with root privileges
sb2 -R -t SailfishOS-armv7hl and then install with zypper in toto-devel. You can look for packages with zypper search toto. Then unlog root from scratchbox. - Configure and compile while loggued in scratchbox
sb2 -t SailfishOS-armv7hl, then make.