Den 27. feb. 2014 22:32, skrev Tobias Brunner:
Hi,
I'm new to the SailfishOS SDK. I'd like to build the ownCloud client for
SailfishOS and create a RPM package for easy installation at the Jolla.
The documentation on how to build the ownCloud sync client is here:
http://doc.owncloud.org/desktop/1.5/building.html
But now I'm looking for a hint on how to build software for SailfisOS.
The SDK is up and running, and now? The howto's are all about how to
create a new software, but not about how to build and package an
existing one.
I know how to build software on linux: ./configure; make; make install.
(And resolve needed dependencies). How can this three commands be mapped
to the SailfishOS world?
To build SyncEvolution, I personally prefer to just ssh into the Mer
build engine, enter Scratchbox, and then run the standard Linux stuff
from there. Probably not for the faint of heart, though. (Although it
might also be possible to build from QtCreator, it wouldn't gain me
much, since it's not a Qt project. Though perhaps I could try it anyway,
just for fun.)
To ssh into the build machine, I have this in my .ssh/config
Host sailfish
HostName localhost
User mersdk
IdentityFile ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk
Port 2222
Now I can just do "ssh sailfish" (after starting the VM, which can be
done from the QtCreator IDE, though there are other ways)
In the VM, I type
sb2 -t SailfishOS-armv7hl
Now I'm in the ARM sandbox, and can build ARM rpms using standard Linux
commands (rpmbuild, etc).
If I need to install some development packages, I do it either from
QtCreator, or from a ssh into the build engine (from *outside* the sandbox):
sdk-manage --devel --install SailfishOS-armv7hl package1 package2...
(I can use e.g. zypper search to find out what's available)
_______________________________________________
SailfishOS.org Devel mailing list