answered
2016-03-16 00:27:25 +0200
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:
sailfishos.org/develop :)
jollailija ( 2016-03-15 19:49:16 +0200 )edit