[SDL] OSX port
Max Horn
max at quendi.de
Sun Jul 1 08:34:01 PDT 2007
Am 01.07.2007 um 14:44 schrieb Mike Shal:
> On 7/1/07, Chris Dobbs <chris_dobbs at dobbscr.karoo.co.uk> wrote:
>>
>>
>> All,
>> I am about to port an SDL app. from linux to OSX. I have never
>> developed on
>> OSX before but just wondered if there any gotchas I should know
>> about. As
>> it's BSD under the hood, allbeit the Darwin flavour (which I
>> believe uses
>> the mach micro-kernel...) it should be straight forward...yeah
>> right !!
>>
>> I am using wxWidgets for the GUI portion of the app and SDL for
>> the sound
>> and video abstraction.
>
> I don't know anything about wxWidgets, but the SDL portion worked out
> of the box for me when I ported marfitude. The only major issues I had
> in porting (as I recall...it's been a while :) were:
>
> 1) There was no simple dlopen()/dlsym()/dclose() functionality that
> you would expect in a Linux or BSD environment. I was eventually able
> to wrap it with a few macros that call
That must have been a long time ago :-). The OS provides these
nowadays, and for older systems, there is dlcompat.
> CFReallyLongFunkyNameFunctions(). Point is if you dynamically load
> stuff at run time you should check to see if OSX now supports those
> functions (I last checked 10.4, I think...), or just copy the macros
> from util/dl.h in the marfitude source.
10.4 *definitely* supports them out of the box. But in an SDL app,
I'd recommend using SDL_LoadObject / SDL_LoadFunction /
SDL_UnloadObject anyway.
Cheers,
Max
More information about the SDL
mailing list