Could you anybody using DerelictSDL2 on Android?

tide tide at tide.tide
Sat Aug 11 14:03:21 UTC 2018


On Tuesday, 7 August 2018 at 12:05:33 UTC, zhani wrote:
> howdy :-)
>
> can anybody use sdl2 on android?
>
> first, i got a ldc2 for android. i just followed here on 
> windows:
> https://wiki.dlang.org/Build_D_for_Android#Windows
>
> so i could compile a sieve.d but didnt run it on android yet.
>
> then next? wut can i try for using DerelictSDL2 on android?
> and this guide didn't use dub. how can i intergradted with ldc2 
> for android?
>
> pls be advised me.
>
> regards,

You can use SDL2 for Android, you don't need DerelictSDL2 either. 
You just need a way to call the SDL2 functions, which you can do 
by creating bindings for them with "extern(C)". Which is my 
preference over Derelict, as it is simpler and makes things 
easier to use (for me).

Otherwise you are probably going to run into a lot of issues as 
no one is really testing LDC2 for android. The people that are 
testing it aren't testing it the traditional way you build an app 
with the Android SDK.


More information about the Digitalmars-d-learn mailing list