[Haskell-cafe] SDL on Mac

Jake Luck lambda at 10k.org
Mon Jan 23 16:27:04 EST 2006

Anyone else here using the SDL binding on their Macs? (If memory serves 
me, at one point, I had gotten libSDL to work with 6.2.2). Now using GHC 
6.4.1, while SDLstable-0.2.0 built without any problem for me on Linux, 
hsc2hs fails on the Mac:

% runhaskell Setup.lhs build --verbose
Reading parameters from /SDLstable/src/Core/SDL.buildinfo
Preprocessing library SDL-0.2.0...
/usr/local/bin/hsc2hs -I/fp/include/SDL -D_THREAD_SAFE 
-oGraphics/UI/SDL/General.hs Graphics/UI/SDL/General.hsc
ld: Undefined symbols:

% cat config.mk
SDL_LIBS=-L/fp/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL
MAINTAINER=lemmih at gmail.com

% cat SDL.buildinfo
cc-options: -I/fp/include/SDL -D_THREAD_SAFE
ld-options: -L/fp/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL

I am using the Mac OS X binary ghc 6.4.1 from the GHC download page on 
10.4.3, linking to the latest libSDL 1.2.9 handbuilt with gcc 3.3.


More information about the Haskell-Cafe mailing list