[SDL] Porting to Android: NDK strategies, etc.

jlunderville jlunder at catfish.dhs.org
Wed Jul 28 15:49:39 PDT 2010


i think that the correct way to do this is to compile sdl with ios4+
and then weak link uikit from your proejct. You need to make runtime
checks anyways.
but hey, if it works the way you enclosed the functions, no problem
btw i thought icculus fixed this in a recent commit
bye
Vittorio

On Fri, Jul 9, 2010 at 10:02 AM, Gabriele Greco <gabriele.greco at darts.it> wrote:
>
>
> On Thu, Jul 8, 2010 at 4:07 AM, Sam Lantinga <slouken at libsdl.org> wrote:
>>
>> The latest SDL 1.3 snapshot should work on iPhone again.  Please let
>> me know if you have any problems.
>
> It works (with SDK 3.2+), but to compile under 3.1.x or earlier I've had to
> remove all the multi resolution/screen stuff.
> What is the correct way to do this?
> Actually I've enclosed all the relevant blocks in:
> #ifdef __IPHONE_3_2
> // code compiled out
> #endif
> But I fear that upgrading to SDK 4.x will break this.
> I've tried also:
> #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
> #endif
> But this is not enough to compile with older SDKs.
> --
> Bye,
>  Gabry
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>



More information about the SDL mailing list