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

Develop on Device without QtCreator?

asked 2015-09-23 06:11:25 +0300

ixw gravatar image

Is it possible to develop Qt C++/QML applications on the actual Jolla device? Which packages would I need to install in developer mode via. pkcon?

I'm now developing for Ubuntu Phone and prefer not to have two copies of QtCreator on my computer. Ubuntu Phone also has a much better and more mature developer ecosystem than Sailfish, so it makes sense to only have one copy to develop for the OS that I can make real applications and do serious work with.

Thanks!

edit retag flag offensive close delete

Comments

2

I can't answer your question directly, but I can tell you that a few members here, including myself, have and do develop apps on the device.

It would be worth becoming a member at talk.maemo.org, where you will find plenty of info and help on developing Sailfish. http://talk.maemo.org/forumdisplay.php?f=52

Also, even if you don't sign up at talk.maemo, there are still some good pages to browse, like this one; http://talk.maemo.org/showthread.php?t=92036 <---- where you can install extra repositories for apps like zypper tool, Python, C/C (gcc/g++ 4.6.4) and additional tools in the mer repos. Hope this helps.

Regards,

Spam Hunter ( 2015-09-23 09:27:03 +0300 )edit

If you're developing pure qml Apps you can run them by simply calling

/home/nemo/myCoolApp $ qmlscene main.qml

michfu ( 2015-09-23 17:38:02 +0300 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2020-05-28 16:58:33 +0300

coderus gravatar image

updated 2020-05-29 00:57:18 +0300

addydon gravatar image

You can use build.merproject.org for building. Writing source code is another thing which you can do anywhere.

Also you can setup build ci on any platform you like (gitlab ci, gihub actions, travis ci, jenkins etc.) using docker containers and compile by pushing to your git repository.

edit flag offensive delete publish link more
0

answered 2015-09-23 10:45:40 +0300

mikelima gravatar image

updated 2015-09-23 11:14:45 +0300

Well there's vim available, and I suppose you can install the compiler and development packages, but I don't think the environment is viable for any serious programming, without a keyboard, an external monitor and an external power supply. Compiling on the phone is going to be slow and to kill the battery prety soon.

On the tablet, it could work for something a bit more substantial, if paired with a bluetooth keyboard or if you are restricting programming to the QML/JavaScript parts, you can skip the build step, and get some more work done.

Edit: If on the other hand you want to develop on the desktop, you still need to install the SDK, which goes in a directory in your home (normally). Avoiding the QtCreator install will not save you much space. And while you can build by logging to the virtual machine through ssh, you would lose easy edit/build/deploy cycle. you could still use the system QtCreator and launch build from the command line. But if you are going to use QtCreator anyway, what is the point?

I do like using command line tools, and I still do when I am building third party packages and so on. But as for the proliferation of QtCreator installations... it is bugging that you get to remember the difference between the various versions, but everybody ships its own copy. We are lucky it is not eclipse...

edit flag offensive delete publish link more

Comments

Otoh you could just write programs in your favourite editor and compile them in the SDK without using QtCreator. And I would expect QtCreator to be smart enought to be able to deal with different development profiles. So no need for two copies.

Philippe De Swert ( 2015-09-23 10:57:22 +0300 )edit

And if you use Python you can just write all your programs (either directly or over SSH) on the device without having to care about SDK or compilers. :)

(the same thing is of course valid for other languages that don't need to be compiled & installing compilers on the device itself)

MartinK ( 2015-09-23 18:13:52 +0300 )edit
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2015-09-23 06:11:25 +0300

Seen: 966 times

Last updated: May 29 '20