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

SDK: Compiling on phone instead of Build VM [answered]

asked 2019-07-18 12:03:37 +0300

rozgwi gravatar image

updated 2019-07-21 20:41:23 +0300

I'd like to build a project with QTCreator/SDK using the phone (Xperia X) for compiling. As for the moment I only have an aged eee-pc aspire netbook at my disposal which isn't capable of running VM's. I was able to add my phone as device in the SDK but has found a way to specify it as build platform for the project. The package I want to build for now is only an ambience. So dependencies are not very complex.

Is this even possible? If so, where do I start? In the wiki I couldn't find anything.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by rozgwi
close date 2019-09-27 01:13:17.711531


I don't know if qt creator is available on the phone (arm). The SDK seems to be 486 mode, and perhaps there is no arm package. But why would you need the SDK? There are all the development packages for arm already available.

If you insist to use the creator I found this guide which is for ubuntu, but would give you an idea how to get qt creator on any linux device. I hope all the required dependencies are available. It might be you would need to use older version for Qt5.6. This is AFAIK the one used in Sailfish X.

deloptes ( 2019-07-19 22:44:09 +0300 )edit

Thanks but that sounds like a very cumbersome way to get ambiences created

rozgwi ( 2019-07-21 20:44:02 +0300 )edit

3 Answers

Sort by » oldest newest most voted

answered 2019-07-21 19:35:48 +0300

coderus gravatar image

If your laptop can run linux, you can try my docker method: https://github.com/CODeRUS/docker-sailfishos-buildengine

edit flag offensive delete publish link more


thanks. i never really got to familiarize myself with Docker. but maybe this is a way to get a working buildengine in my machine

rozgwi ( 2019-07-21 20:51:28 +0300 )edit

answered 2019-09-27 01:10:42 +0300

rozgwi gravatar image

updated 2019-09-27 01:12:17 +0300

So, I took the Docker container for a spin.
It took ages to set it up but my project compiles just fine! thanks for that, @coderus
I really don't understand the way the SDK compiles stuff though. For just an ambience it seems a little out of the way to compile it with qmake, make and even gcc which popped up in the logs. Also I'm incapable of understanding the macros in the autogenerated RPM specfile. It won't compile on my phone.

I then played around with the RPM guide KuroNeko linked to. It's a bit complicated moving the files back and forth in the directory tree but it works.

Finally now I ended up using this template that is able to compile an ambience on my phone.
Thanks for all your help!

edit flag offensive delete publish link more

answered 2019-07-21 19:28:33 +0300

KuroNeko gravatar image

Maybe this can help you: http://talk.maemo.org/showthread.php?t=92963

It looks to me, like that guy had the same issue and built ambiances on his device.

edit flag offensive delete publish link more


thanks, looks very promising.

maybe i'll find a way to avoid copying stuff back and forth to BUILDROOT

rozgwi ( 2019-07-21 20:49:42 +0300 )edit

Question tools



Asked: 2019-07-18 12:03:37 +0300

Seen: 283 times

Last updated: Sep 27 '19