Page 1 of 1

SDL2 based sample browser

Posted: Sun Mar 08, 2015 10:47 pm
by paroj
I picked up the work by holocroweaver and finished it for desktop platforms. You can find the results here. However I cannot test this on all supported platforms. Therefore someone who is reading this should test it on
  • Windows
  • OSX
and finish the proting for
  • NaCL
  • iOS
  • Emscripten
  • WinRT
  • Android (probably can to this myself)

Re: SDL2 based sample browser

Posted: Sun Mar 08, 2015 10:54 pm
by dark_sylinc
One question before I dive into everything else: How is the CMake dependencies on SDL being handled? AFAIK ogredeps repo doesn't handle SDL dependencies on Windows (MSVC). I would love to be wrong though.

Re: SDL2 based sample browser

Posted: Sun Mar 08, 2015 11:01 pm
by Wolfmanfx
iOS / Android just use OIS interfaces but the input is injected nativly.

OSX / Linux / Win32 is important for the samplebrowser in the first instace - regarding CMake it should integrated into the build system I guess you did for linux
and installed SDL (make install).
What we would prefer is to integrate it into the OgreDeps repo and make it part of the build.

Re: SDL2 based sample browser

Posted: Sun Mar 08, 2015 11:13 pm
by paroj
I thought holocronweaver already took care of that.
For porting I just used SDL2 from the repositories, but if I would have to compile it myself, I would just add an ExternalProject_Add somewhere - as done in the PR above.

Re: SDL2 based sample browser

Posted: Mon Mar 09, 2015 8:55 am
by Transporter
I would like to add one little improvement: If SDL2 is not found but samples are selected to build, write out an error message. Or set SDL2 to required for samples.

Re: SDL2 based sample browser

Posted: Mon Mar 09, 2015 7:44 pm
by dark_sylinc
paroj wrote:I thought holocronweaver already took care of that.
For porting I just used SDL2 from the repositories, but if I would have to compile it myself, I would just add an ExternalProject_Add somewhere - as done in the PR above.
As far as I know that PR didn't cover MSVC builds, only *nix and MinGW.

Re: SDL2 based sample browser

Posted: Tue Mar 10, 2015 4:47 pm
by paroj
unfortunately I dont have any experience with MSVC builds so I can help there. How to you handle SDL2 for v2-1? I guess the same solution could also be applied here..

Re: SDL2 based sample browser

Posted: Wed Mar 11, 2015 10:25 pm
by theydidntnameme
dark_sylinc wrote:
paroj wrote:I thought holocronweaver already took care of that.
For porting I just used SDL2 from the repositories, but if I would have to compile it myself, I would just add an ExternalProject_Add somewhere - as done in the PR above.
As far as I know that PR didn't cover MSVC builds, only *nix and MinGW.
It says in the overview that he tested it with Visual Studio 2013.
Jesse Johnson wrote:I have tested these changes using Visual Studio 2013

Re: SDL2 based sample browser

Posted: Thu Mar 12, 2015 8:31 am
by Transporter
SDL and SDL2 are working well with Visual Studio. SDL2 uses CMake for building, so it's not a problem to create the library. The only problem is the DirectX staff. SDL is using DirectInput8 which is part of the "old" DirectX SDK from 2010. The CMake script are not detecting DirectX from the Windows SDK.

Re: SDL2 based sample browser

Posted: Fri May 08, 2015 5:18 pm
by paroj
I finally found some time to put together a new ogredeps repository which only consists of CMake scripts downloading and building stuff. Therefore it scales well for cross-platform. Among others this builds SDL2 for Linux and Android:
https://bitbucket.org/paroj/ogredeps