[fpc-pascal] Mac OS X SDL without gcc or XCode
jonas.maebe at elis.ugent.be
Tue Mar 17 18:15:48 CET 2009
On 17 Mar 2009, at 14:52, dmitry boyarintsev wrote:
> There're some fpc-sdl templates for XCode (at jedi-sdl). I'm using
> Lazarus IDE (codetools mostly wanted feature) for development, and
> using XCode is pain for me.
> It's also possible to use precompiled library, as desctibed at this
> forum thread: http://forum.lazarus.freepascal.org/index.php/topic,6192.15.html
> sdl unit (at fpc-package) still links SDLmain and libSDL libraries,
> that should be removed (otherwise there might be linker errors).
There are two different versions of SDL for Mac OS X. On the one hand
there is the framework version, which is discussed above (and the one
you get if you download the binary version from libsdl.org). On the
other hand, there is also a "classic unix" version (no framework, just
a bunch of separate libraries) which you get by default if you compile
SDL from sources (or if you install it using Fink, and possibly also
if you install it using MacPorts).
In this case, libSDLmain.a is always available in pre-compiled form
(it's automatically compiled along with the rest of the sources).
That's also why the FPC SDL unit always links against against that
library (so that it works without having to add anything extra in the
When FPC ships by default with Objective-C support, your unit can be
included instead and this can be changed. Until then, I prefer to keep
things the way they are now.
More information about the fpc-pascal