ev1313 / Pascal-SDL-2-Headers

These are the Pascal SDL 2 Headers.
Mozilla Public License 2.0
113 stars 48 forks source link

Compiling for Android from Delphi #71

Open piXelicidio opened 5 years ago

piXelicidio commented 5 years ago

Hi, looks like is not intended, right? Googling doesn't give me any hope. Have anyone here tried SDL2+Delphi+Android?

Free-Pascal-meets-SDL-Website commented 5 years ago

Hi,

some people report they managed to run applications with SDL2/Android+Lazarus, hence it should be possible for Delphi (actually I'm sure it has been done, already), too.

Perhaps this can help you get further.

https://www.freepascal-meets-sdl.net/about-sdl2-free-pascal-and-android/

https://www.freepascal-meets-sdl.net/android-sdl2-and-pascal/

Nevertheless, I personally never tried it and if you manage to get it done, I would really appreciate to hear from you. If you would like to share a short tutorial for others to read, I'd be glad to publish it at the said site.

Good luck.

turric4n commented 5 years ago

That's would not to be hard... because Delphi ARM compiler can link (statically and dinamically) third party .so libraries.

You will need to make a wrapper that use SDL2 (Android) .so library.

piXelicidio commented 5 years ago

Hi again! I tried last year (thanks for your replys), then I tried again today. There is now way I could find any light on this. I read everywhere, I can't find no one doing it, and at the end I'm still lost. There is no SDL2 .so library on SDL2 website, they say you need to get the source, and seems like I should compile on Android Studio, similar like they do it here with C++: http://lazyfoo.net/tutorials/SDL/52_hello_mobile/android_windows/index.php Looks like I have to give up again :(

piXelicidio commented 5 years ago

This was the most close attempt I have found, but looks like there is no future of trying SDL2 with Delphi:
https://www.pascalgamedevelopment.com/showthread.php?31146-sdl2-windows-and-android