- Register as Apple Developer.
- Download an install the Xcode (it sets up the tool-chain).
- Install the Lispbuilder-SDL to ~/lib/lispbuilder-sdl/
- Download sources of SDL, unpack them to ~/lib/SDL-1.2.14 (number may vary as new SDL is available!)
- Build a SDL: in folder ~/lib/SDL-1.2.14 run ./configure then make then sudo make install
All these steps are described in ~/lib/SDL-1.2.14/README.MacOSX - Run make command in folder ~/lib/lispbuilder-sdl/cocoahelper to build the cocoahelper
- Run emacs, in buffer *slime-repl sbcl* execute:
- (require :cocoahelper)
- (require :lispbuilder-sdl)
Tuesday, November 23, 2010
How to setup Lispbuilder-SDL on Mac OS X
Subscribe to:
Post Comments (Atom)
I'm having a problem where when I try to run make in cocoahelper I get the following error:
ReplyDeletemake -C glue
g++ -dynamiclib -g -Wall -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/Library/Frameworks/SDL.framework/Headers -c -o lispbuilder-sdl-glue.o lispbuilder-sdl-glue.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
clang: warning: argument unused during compilation: '-dynamiclib'
In file included from lispbuilder-sdl-glue.c:31:
./lispbuilder-sdl-glue.h:27:10: fatal error: 'SDL.h' file not found
#include
^
1 error generated.
make[1]: *** [lispbuilder-sdl-glue.o] Error 1
Any suggestions?
Well, from the warnings I see that SDL is for some reason not visible to the make (is it not installed with steps 4-5?).
ReplyDeleteTo check this I would try to build some SDL examples to check if SDL is available/accessible.