Ask / Submit
2

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

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

rozgwi gravatar image

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

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

Comments

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

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

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

3 Answers

Sort by » oldest newest most voted
3

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

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

Comments

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 +0200 )edit
3

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

rozgwi gravatar image

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

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
0

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

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

Comments

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

Question tools

Follow
4 followers

Stats

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

Seen: 264 times

Last updated: Sep 27