chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Installing the SDL Egg on OSX Montain Lion


From: Stephen Eilert
Subject: [Chicken-users] Installing the SDL Egg on OSX Montain Lion
Date: Tue, 13 Nov 2012 22:30:25 -0300


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/zgyqckpd3pscphz33fc9sny00000gn/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/zgyqckpd3pscphz33fc9sny00000gn/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/zgyqckpd3pscphz33fc9sny00000gn/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_9596 in sdl.o
  "_TTF_FontHeight", referenced from:
      _f_9544 in sdl.o
  "_TTF_FontLineSkip", referenced from:
      _f_9583 in sdl.o
  "_TTF_GetFontStyle", referenced from:
      _f_9515 in sdl.o
  "_TTF_Init", referenced from:
      _f_9436 in sdl.o
  "_TTF_OpenFont", referenced from:
      _stub3353 in sdl.o
  "_TTF_OpenFontIndex", referenced from:
      _f_9479 in sdl.o
  "_TTF_Quit", referenced from:
      _f_9444 in sdl.o
  "_TTF_RenderText_Blended", referenced from:
      _stub3575 in sdl.o
  "_TTF_RenderText_Shaded", referenced from:
      _stub3536 in sdl.o
  "_TTF_RenderText_Solid", referenced from:
      _stub3503 in sdl.o
  "_TTF_RenderUTF8_Blended", referenced from:
      _stub3591 in sdl.o
  "_TTF_RenderUTF8_Shaded", referenced from:
      _stub3556 in sdl.o
  "_TTF_RenderUTF8_Solid", referenced from:
      _stub3519 in sdl.o
  "_TTF_SetFontStyle", referenced from:
      _f_9528 in sdl.o
  "_TTF_SizeText", referenced from:
      _stub3473 in sdl.o
  "_TTF_SizeUTF8", referenced from:
      _stub3488 in sdl.o
  "_TTF_WasInit", referenced from:
      _f_9440 in sdl.o
  "_rotozoomSurface", referenced from:
      _f_9976 in sdl.o
  "_zoomSurface", referenced from:
      _f_9999 in sdl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error: shell command terminated with non-zero exit status 256: cc sdl.o -o sdl.so -m64 -bundle -lSDL -L/usr/local/lib -lSDLmain -lSDL -L"/usr/local/Cellar/chicken/4.8.0/lib" -lchicken -lm

Error: shell command failed with nonzero exit status 256:

  /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 


Error: shell command terminated with nonzero exit code
17920
"/usr/local/Cellar/chicken/4.8.0/bin/csi -bnq -setup-mode -e \"(require-library ...


-- Stephen

"Kids these days.
Whatever happened to hard work?"

       -- Joel Spolsky, The perils of javaschools


reply via email to

[Prev in Thread] Current Thread [Next in Thread]