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

SDL2 and developing directly in VM

asked 2016-03-15 19:18:02 +0200

hotmultimedia gravatar image

Hello,

is SDL2 support still broken? I'd like to port my softwares to Jolla Tablet. It would be also nice if I could do that without using the QT Creator. (I think best would be to build directly on MerSDK VM and then send binaries to the tablet using scp over wifi) Can someone point me to the right direction to do that?

Thanks!

edit retag flag offensive close delete

Comments

1

sailfishos.org/develop :)

jollailija ( 2016-03-15 19:49:16 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2016-03-16 00:27:25 +0200

hotmultimedia gravatar image

I wrote my steps for those who come here after me: (although they were quite trivial after all)

So Mersdk VM is configured to allow ssh access via port 2222. Login with public key:

$ ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost

SB2 (Scratchbox 2) is already configured for the mersdk user. (Dunno if QT creator did this)

Then install devel libs, pull the example project, compile and "deploy". You may have to install SDL2 manually on the device before running.

$ sb2 -t SailfishOS-i486 -m sdk-install -R zypper install SDL2-devel
$ git clone https://github.com/sailfish-sdk/sdk-sdl-project-example.git
$ sb2 g++ sdltest.cpp common.cpp -o sdltest `sb2 sdl2-config --libs --cflags` -lGLESv2
$ scp sdltest nemo@jollatablet:
edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2016-03-15 19:18:02 +0200

Seen: 270 times

Last updated: Mar 16 '16