maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Help me to code for Sailfish OS (https://talk.maemo.org/showthread.php?t=100817)

coderus 2020-04-22 20:05

Re: Help me to code for Sailfish OS
 
there a lot of opensource SDL apps and games in openrepos you can check for inspiration

Morc 2020-04-23 08:33

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by Halftux (Post 1567055)
You need to install the development packages:

SDL2-devel
SDL2_gfx-devel
SDL2_image-devel
SDL2_mixer-devel
SDL2_net-devel
SDL2_sound-devel
SDL2_ttf-devel

But don't now if it is still valid, names could have changed.


Thanks, thanks so much! It compiled now and i only have to fix touch and also possibly orientation. I don't really know now how, but i'll maybe find something.

Morc 2020-04-25 18:23

Re: Help me to code for Sailfish OS
 
I've been thinking, as i fixed my SDL app to work now with touch, how can i put it to rpm format with .desktop and icon like creating an app in Qt Creator?

coderus 2020-04-25 18:29

Re: Help me to code for Sailfish OS
 
you can always RTFM: https://sailfishos.org/wiki/Tutorial...kages_manually

rrijken1973 2020-06-24 05:42

Re: Help me to code for Sailfish OS
 
how difficult is it to port an open source android app to sailfish? Not a lot of apps available so as this has not been done yet, I guess very difficult?

For example, porting over K9 email or even a better browser....

juiceme 2020-06-24 06:00

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by rrijken1973 (Post 1568019)
how difficult is it to port an open source android app to sailfish? Not a lot of apps available so as this has not been done yet, I guess very difficult?

For example, porting over K9 email or even a better browser....

Unless the android app has been created with a cross-platform toolkit (I think there are some that have been done that way?) it is fairly difficult.

The difficulty lies in the fact that Android applications are implemented with their own UI framework and the insides of the applications is done in java, and on Sailfish the UI framework is Silica and QT while the program logic is (usually) c++.

It is most often easier to implement the whole shebang from scratch than try porting.

peterleinchen 2020-06-24 11:45

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by juiceme (Post 1568020)
...
It is most often easier to implement the whole shebang from scratch than try porting.

Or, even more easier, install aliendalvik and the Android app :eek:
(duck'n'cover)

levone1 2020-07-09 21:27

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1559337)
Decided to create one super-thread for all the questions about Sailfish OS coding.

You can post random questions about coding here and help others to code.

Sailfish OS only.

Question for you, (or anyone)...
If I modify a system qml, (say "glassBackground.qml", for example), then I can't apply any patch that works with that file, (I guess the patch script detects that the file was changed, and assumes some other patch is applied). Is there any way to reset that info, and cause the patch to apply anyway? I notice in Patchmanager log, that there is a line that says, "apply patch anyway? no". Can that be overridden?
Thanks

coderus 2020-07-09 21:29

Re: Help me to code for Sailfish OS
 
no-no. open patch file in text editor and look. it matches lines before and after lines to be changed. if you change these matches then patch cannot be applied.

levone1 2020-07-09 21:36

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1568242)
no-no. open patch file in text editor and look. it matches lines before and after lines to be changed. if you change these matches then patch cannot be applied.

Oh - so if I change the file first, then install the patch, it should work... I'll check it out...


All times are GMT. The time now is 16:29.

vBulletin® Version 3.8.8