On Wed, Nov 14, 2012 at 11:40 AM, Christian Kellermann <[email protected]>wrote:
> * Stephen Eilert <[email protected]> [121114 02:30]: > > 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? > > > > Just a small note: The sdl egg is also available as sdl-base, sdl-ttf, > sdl-net, etc. so if you don't need everything you can concentrate on > the parts you actually need. The sdl egg has been left as is for > backwards compatibility. > Thanks for the help guys. I only need sdl-base for now (later on, sdl-ttf will be required) and installing just sdl-base worked (compiled and linked). I am getting a NSInternalConsistencyException now but I recall reading something about it in the documentation. sdl_net was already linked to /usr/local/lib, so I am not sure what went wrong, I will investigate when I get more free time. My feeling is that there are some missing functions (maybe due to the version I have?), I'll dump the symbols to check. Also, pkg-config output: $ pkg-config --libs sdl -Wl,-framework,Cocoa -L/usr/local/lib -lSDLmain -lSDL -- Stephen *"Kids these days.* *Whatever happened to hard work?"* -- Joel Spolsky, The perils of javaschools
_______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
