We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

Cross compiling apps

asked 2015-03-06 17:55:00 +0300

SteveJones gravatar image

updated 2015-03-07 09:41:22 +0300

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?

edit retag flag offensive close delete

Comments

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 +0300 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2015-03-06 18:36:34 +0300

Acce gravatar image

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/

edit flag offensive delete publish link more

Comments

1

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 +0300 )edit

Yes, 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 +0300 )edit

Oh 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 +0300 )edit
1

answered 2015-03-06 19:12:06 +0300

MartinK gravatar image

You 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.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
7 followers

Stats

Asked: 2015-03-06 17:55:00 +0300

Seen: 653 times

Last updated: Mar 06 '15