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

Best way to develop sfos apps on arm device?

asked 2020-04-18 19:18:27 +0200

szopin gravatar image

Anybody knows how to turn generic QtCreator installation into a home-made arm SDK for SFOS? My laptop's gone, so thinking of turning my cosmo communicator into a dev device. Pretty sure I'll be able to get a standard qtcreator compiled, just not sure what then. It's running a custom (and bit buggy) debian (gemian) so a way to create rpms will be needed for sure. Then there's silica, not sure if I can just copy some .so's from my jolla C for it to understand libsailfishapp? SDK Jolla provides most likely has only 486 versions, so probably not useful. VM/emulator/build engine etc wouldn't be needed, just a way to compile (then again it is running arm64, so that could be an issue? no idea). Any help would be greatly appreciated

edit retag flag offensive close delete

Comments

1

Thanks, I've been using tIDE on device (jolla C) for quite a while, while it's really cool sadly not what I'm looking for right now, I'm looking for a way to develop for sfos from a non-sfos device (gemian/arm device with a generic QtCreator), official SDK is x86 only and heavily relies on VMs, so just some way to tweak a basic qtcreator installation hopefully

szopin ( 2020-04-18 20:17:18 +0200 )edit
1

apologies, comment/answer removed - speed reading again! guilty!!

Spam Hunter ( 2020-04-18 21:34:51 +0200 )edit

Unfortunately, installing the Qt development packages on the Sailfish OS device will break the GUI. Otherwise you could just build everything on the device.

Dietmar ( 2020-04-19 18:09:39 +0200 )edit
2

@Dietmar check this https://together.jolla.com/question/26605/howto-install-a-chroot-for-building-apps/ you can install dev packages into chroot, I think that's how I was able to compile qtCreator on jolla1 (took only 6h, 2x as fast as on n900, octacore nowadays with only -j7 to be able to watch youtube still under an hour for qt should be similar for creator once I iron out all the issues).

szopin ( 2020-04-20 18:19:53 +0200 )edit
1

@szopin Thanks. That looks cool. I'm a Python guy and it's nice building PyQt right on the device.

I also have a Gemini and Cosmo and have backed the Astro. I'm still dreaming of Sailfish as continuity OS for these with a Linux desktop and also Android app support. Seems unlikely that this will come true, though...

Dietmar ( 2020-04-20 22:21:24 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2020-04-20 14:08:13 +0200

MartinK gravatar image

I think you don't really need the Sailfish SDK to develop Sailfish OS applications. For example, when I work on the modRana flexible navigation system, which is Python + QML, I write the code in PyCharm and/or vim and then rsync it to the device & run it manually via SSH. This way I could work even directly on a Sailfish OS device, just editing stuff and then running it - and I did use this a couple of times to fix-up small issues in modRana on the go.

As for packaging, I use the Mer OBS instance to build the packages for me. I have a couple scripts that build all the packages I need for the given modRana release via the command line osc tool, then scripts that download the built packages so that I can put them to OpenRepos and Jolla Store.

If your application is not Python & QML but C++ & QML, this would be a bit mor complicated to pull off on an ARM device or Sailfish OS device directly, but you could still edit the QML parts directly and then maybe rebuild the C++ parts via OBS only when needed, in case you can't get compiler and the needed libs on device (or to an on-device VM/container ?).

edit flag offensive delete publish link more

Comments

1

Awesome stuff, gonna check obs, my apps so far were only qml so should work, I'm testing it live on device anyway, so just the compile/packaging/git integration was missing.

szopin ( 2020-04-20 18:27:12 +0200 )edit

You don't even need OBS, you can do everything in GitLab, like I do for my appappss like Hasher.

NobodyInPerson ( 2020-04-28 00:12:01 +0200 )edit

Sorry for late reply, notifications seem bugged and was quite busy. Is gitlab generating binaries/rpms for you?

szopin ( 2020-05-08 18:21:44 +0200 )edit

Yeah notifications are broken that sucks. Yes I am creating RPMs in GitLab. You can let GitLab execute arbitrary code in arbitrary Docker containers. For free! Limitless possibilities...

NobodyInPerson ( 2020-05-13 09:50:32 +0200 )edit

If we can get the GitLab runner compiled for SailfishOS, one could even have a SailfishOS device laying aroud that picks up the compilation jobs and the packages would be built directly on a real device automatically. Spares the cross-compilation annoyance maybe...

NobodyInPerson ( 2020-05-13 09:55:47 +0200 )edit
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2020-04-18 19:18:27 +0200

Seen: 450 times

Last updated: Apr 20 '20