Search code examples
common-lispsdlquicklisp

Unable to load sdl-gfx in quicklisp


I've been installing lispbuilder-sdl family with quicklisp and encountered error in sdl-gfx:

CL-USER> (ql:quickload "lispbuilder-sdl-gfx")
To load "lispbuilder-sdl-gfx":                                                  
  Load 1 ASDF system:                                                           
    lispbuilder-sdl-gfx                                                         
; Loading "lispbuilder-sdl-gfx"                                                 
...........;                                                                    
           ; compilation unit aborted                                           
           ;   caught 1 fatal ERROR condition  

Unable to load any of the alternatives:                                         
   ("libSDL_gfx.dylib" (:FRAMEWORK "SDL_gfx"))
   [Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR]

I use slime+emacs+SBCL under macosx 10.6. I've installed SDL.framework from this link:

http://thirdcog.eu/apps/frameworks#glew

a file called sdl_with_friends.zip and put things under /Library/Frameworks. However it still complains about cannot find framework. Any idea on this?


Solution

  • The error is complaining that it can't load the dynamic library for SDL. I'm sorry - I don't know much about the directory layout on macs (which appears to be where you're working), so I can't exactly tell you how to fix this. But somewhere you should have installed a file called libSDL_gfx.dylib (probably this extension) and the error message means that CFFI is failing to find it.