Re: [SailfishDevel] Question regarding porting SDL & OpenGL game to Sailfish
Are there many SDKs? The one I've installed is from https://sailfishos.org/index.html and specifically the Windows version ( http://releases.sailfishos.org/sdk/installers/1312/SailfishOSSDK-Alpha-1312-Qt5-windows-offline.exe ) I'm using the IDE that is installed so I don't know how it communicates with the emulator (or the device as I received it yesterday). I had already downloaded from github the sdl2-opengles-test but when I try to compile the project it cannot find the SDL.h I have a similar problem with my own code, I failed to make the IDE see my various folders. The way I have organised my source code is to create different static libraries doing different things (logic, visual effects, utilities) and so far has worked for all my mobile platforms. Actually my games are source compatible for the different mobile platforms and only use a few #ifdef/#endif blocks to distinguish between them. So by compiling and linking with different solutions/projects/IDE I can create the same game for different platforms using the same source files eg I use Visual Studio for the PC version, Samsung's eclipse version for badaOS, generic eclipse for webOS, BlackBerry's eclipse version for PlayBook and BB10 and under OS X I use xCode. I hopped I could do the same with jolla ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Question regarding porting SDL & OpenGL game to Sailfish
Hi, On 12.02.2014 11:41, Thomas Perl wrote: Hi, On 2014-02-10 20:27, Iosif Hamlatzis wrote: I have a couple of questions using the IDE, I would like to inform that I'm developing on Windows and my games use extensively SDL with OpenGL ES. As I don't use Qt I tried to create a plain c++ project and I tried both options using either qmake or cmake but I cannot make my code see the SDL libraries (SDL, SLD_ttf, SDL_mixer, SDL_image) Are there any related samples? There's https://github.com/mer-qa/sdl2-opengles-test/, which works as a test and shows also how to create an OpenGL ES 1.1 or OpenGL ES 2.0 window, how to use the image, mixer and ttf libraries, and how to package apps (.desktop file, etc..). Which SDK are you using? The Qt Creator one or just the Mer Platform SDK? Or SSH into the SDK VM from the Sailfish SDK? If you ssh'd into the SDK VM, and cloned sdl2-opengles-test, doing "mb2 build" in there should work; it should pull in the build-dependencies, and then build the RPM in a "RPMS/" folder below the sources. the following might also give some useful hints: https://together.jolla.com/question/22379/porting-sdl-20-game-to-sailfish/ br Reto HTH :) Thomas ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Question regarding porting SDL & OpenGL game to Sailfish
Hi, On 2014-02-10 20:27, Iosif Hamlatzis wrote: I have a couple of questions using the IDE, I would like to inform that I'm developing on Windows and my games use extensively SDL with OpenGL ES. As I don't use Qt I tried to create a plain c++ project and I tried both options using either qmake or cmake but I cannot make my code see the SDL libraries (SDL, SLD_ttf, SDL_mixer, SDL_image) Are there any related samples? There's https://github.com/mer-qa/sdl2-opengles-test/, which works as a test and shows also how to create an OpenGL ES 1.1 or OpenGL ES 2.0 window, how to use the image, mixer and ttf libraries, and how to package apps (.desktop file, etc..). Which SDK are you using? The Qt Creator one or just the Mer Platform SDK? Or SSH into the SDK VM from the Sailfish SDK? If you ssh'd into the SDK VM, and cloned sdl2-opengles-test, doing "mb2 build" in there should work; it should pull in the build-dependencies, and then build the RPM in a "RPMS/" folder below the sources. HTH :) Thomas ___ SailfishOS.org Devel mailing list
[SailfishDevel] Question regarding porting SDL & OpenGL game to Sailfish
While waiting to receive my device I thought I should start porting my games from BB10 & iOS to SailfishOS I have a couple of questions using the IDE, I would like to inform that I'm developing on Windows and my games use extensively SDL with OpenGL ES. As I don't use Qt I tried to create a plain c++ project and I tried both options using either qmake or cmake but I cannot make my code see the SDL libraries (SDL, SLD_ttf, SDL_mixer, SDL_image) Are there any related samples? ___ SailfishOS.org Devel mailing list