Hello guys,
Before I don the full diving suit, I'd like to know if any of you have
pointers regarding building the SDL egg on OSX.
I am doing some experiments which depend on SDL and Cairo which are both
easy to install under Linux. But this is my main dev machine and I'd really
like to get it working properly.
Cairo was complaining about xcb-shm or something, which I fixed by setting
PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig
No such luck with SDL. I have tried installing and linking SDL with
homebrew (actually, all packages with SDL on their names, to be sure: brew
install sdl sdl_gfx sdl_image sdl_mixer sdl_net sdl_rtf sdl_sound sdl_ttf),
then compiling the SDL egg. It gives me the linker errors below.
I wondered if it was an arch problem, but it seems that both chicken and
the library are x86-64. For instance:
⌘ file /usr/local/Cellar/sdl_net/1.2.8/lib/*
/usr/local/Cellar/sdl_net/1.2.8/lib/libSDL_net-1.2.0.dylib: Mach-O 64-bit
dynamically linked shared library x86_64
/usr/local/Cellar/sdl_net/1.2.8/lib/libSDL_net.a: current ar
archive random library
/usr/local/Cellar/sdl_net/1.2.8/lib/libSDL_net.dylib: Mach-O 64-bit
dynamically linked shared library x86_64
So I am not sure what the problem is. Any ideas?
--
⌘ chicken-install sdl
retrieving ...
connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
requesting "/henrietta.cgi?name=sdl&mode=default" ...
reading response ...
HTTP/1.1 200 OK
Date: Wed, 14 Nov 2012 01:27:33 GMT
Server: Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.9-dev DAV/2
SVN/1.6.17 PHP/5.2.17 mod_fastcgi/2.4.6
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
reading chunks
reading files ...
./Makefile
./COPYING
./test-heap.scm
./heap.scm
./keysym.scm
./sdl-csi.scm
./sdl.meta
./sdl.scm
./sdl.setup
./test-sdl-body.scm
./test-net.scm
./unknown2-scale8.jpg
./test-sdl.scm
./timer.scm
sdl located at
/var/folders/bj/zgyqckpd3pscphz33fc9sny0gn/T/tempaf86.28431/sdl
checking platform for `sdl' ...
checking dependencies for `sdl' ...
install order:
("sdl")
installing sdl:0.5.5 ...
changing current directory to
/var/folders/bj/zgyqckpd3pscphz33fc9sny0gn/T/tempaf86.28431/sdl
/usr/local/Cellar/chicken/4.8.0/bin/csi -bnq -setup-mode -e
"(require-library setup-api)" -e "(import setup-api)" -e
"(setup-error-handling)" -e "(extension-name-and-version '(\"sdl\"
\"0.5.5\"))"
/var/folders/bj/zgyqckpd3pscphz33fc9sny0gn/T/tempaf86.28431/sdl/sdl.setup
/usr/local/Cellar/chicken/4.8.0/bin/csc -feature compiling-extension
-setup-mode-s -O3 -d1 sdl.scm -j sdl -lSDL -I/usr/local/include/SDL
-D_GNU_SOURCE=1 -D_THREAD_SAFE -L/usr/local/lib -lSDLmain -lSDL -C
-Wl,-framework,Cocoa
clang: warning: -Wl,-framework,Cocoa: 'linker' input unused when '-c' is
present
sdl.c:1315:35: warning: passing 'unsigned char *' to parameter of type
'char *' converts between pointers to integer types with different sign
[-Wpointer-sign]
C_r=C_mk_bool(SDL_VideoDriverName(t0,t1));
~~^~~
/usr/local/Cellar/chicken/4.8.0/include/chicken/chicken.h:972:38: note:
expanded from macro 'C_mk_bool'
#define C_mk_bool(x) ((x) ? C_SCHEME_TRUE : C_SCHEME_FALSE)
^
/usr/local/include/SDL/SDL_video.h:284:58: note: passing argument to
parameter 'namebuf' here
extern DECLSPEC char * SDLCALL SDL_VideoDriverName(char *namebuf, int
maxlen);
^
1 warning generated.
Undefined symbols for architecture x86_64:
"_IMG_Load", referenced from:
_f_9949 in sdl.o
_f_9959 in sdl.o
"_SDLNet_AddSocket", referenced from:
_f_10561 in sdl.o
"_SDLNet_CheckSockets", referenced from:
_stub4005 in sdl.o
"_SDLNet_DelSocket", referenced from:
_f_10583 in sdl.o
"_SDLNet_Init", referenced from:
_f_10220 in sdl.o
"_SDLNet_Quit", referenced from:
_f_10224 in sdl.o
"_SDLNet_ResolveHost", referenced from:
_f_10233 in sdl.o
_f_10240 in sdl.o
"_SDLNet_ResolveIP", referenced from:
_f_10263 in sdl.o
"_SDLNet_TCP_Accept", referenced from:
_f_10333 in sdl.o
"_SDLNet_TCP_Close", referenced from:
_f_10442 in sdl.o
"_SDLNet_TCP_GetPeerAddress", referenced from:
_f_10362 in sdl.o
"_SDLNet_TCP_Open", referenced from:
_f_10308 in sdl.o
"_SDLNet_TCP_Recv", referenced from:
_f_10412 in sdl.o
"_SDLNet_TCP_Send", referenced from:
_f_10383 in sdl.o
"_TTF_CloseFont", referenced from:
_f_9498 in sdl.o
"_TTF_FontAscent", referenced from:
_f_9557 in sdl.o
"_TTF_FontDescent", referenced from:
_f_9570 in sdl.o
"_TTF_FontFaceFamilyName", referenced from:
_f_9626 in sdl.o
"_TTF_FontFaceIsFixedWidth", referenced from:
_f_9609 in sdl.o
"_TTF_FontFaceStyleName", referenced from:
_f_9643 in sdl.o
"_TTF_FontFaces", referenced from:
_f_9