Cross compiling apps
Is it possible and/or supported at all to cross compile apps for SailfishOS/Jolla/Silica/... without using the SDK, or at least just calling bits of the SDK from the command line and not having to mess around with VMs?
We have moved to a new Sailfish OS Forum. Please start new discussions there.
Is it possible and/or supported at all to cross compile apps for SailfishOS/Jolla/Silica/... without using the SDK, or at least just calling bits of the SDK from the command line and not having to mess around with VMs?
yes, if you're running linux, you can use chroot and don't need a vm: https://katastrophos.net/andre/blog/2014/03/29/running-sailfishos-build-engine-outside-virtualbox-vm/
Seriously? I need to extract the build engine from the supplied VM then run a server in a chrooted environment and communicate with it via a webserver?
Also this is basically the opposite of what I want, which is to be able to just type "make" or "qmake" at the command line and have the app build, not have the build engine running somewhere so I can hit the build button in the SDK.
SteveJones ( 2015-03-06 18:48:20 +0200 )editYes, seriously. And no, you mostly communicate over ssh. I don't see what is the big problem ssh:ing in and typing whatever commands needed, it's just one command more to open a shell. Would be nice if they offered just a package to install the thing from regular Linux repositories though. But the world ain't perfect, sadly.
Acce ( 2015-03-06 19:24:26 +0200 )editOh yeah, also, the SDK uses scratchbox2, so you need to add some stuff before your commands too. https://wiki.merproject.org/wiki/Platform_SDK_and_SB2
Acce ( 2015-03-06 19:34:44 +0200 )editYou can use the Mer OBS instance - it has a Sailfish OS target. I have been using it for all my Sailfish OS packaging needs for about a year already without a glitch.
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2015-03-06 17:55:00 +0200
Seen: 682 times
Last updated: Mar 06 '15
Can I contribute Sailfish source code? [answered]
Writing apps for Sailfish: Free APRESS book on QML and JavaScript
Trigger the "Select Internet Connection" dialog from qml
Monthly community improvements desired
Help with .cpp file [answered]
Sailfish SDK: Requesting well documented C++ and QML tutorial
I think it would help if it was possible to use KVM instead of the kinda messy (out of tree kernel module...) VirtualBox for the VMs.
MartinK ( 2015-03-06 19:14:17 +0200 )edit