SDL on Mac

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SDL on Mac

Jake Luck-3
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:
_ZCMain_main_closure
___stginit_ZCMain

% cat config.mk
SDL_CFLAGS=-I/fp/include/SDL -D_THREAD_SAFE
SDL_LIBS=-L/fp/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL
PACKAGE=SDL
VERSION=0.1.0
MAINTAINER=[hidden email]

% 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.

jake

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe