[Pal-devel] Installation problem

Tomi Neste flatlander at yellow-hut.com
Mon Jul 9 18:36:31 UTC 2007


<matthieu.villeneuve at free.fr> kirjoitti Mon, 09 Jul 2007 15:40:29 +0300:

> Hello,
>
> I'm trying to install PAL (SBCL / Linux Ubuntu) and running into an
> "Attempt to call an undefined alien function" error message at startup,
> or when calling:
>   (pal-ffi:init (logior pal-ffi:+init-video+ pal-ffi:+init-audio+))
>
> I installed the SDL library, I think I correctly have header files in
> /usr/include/SDL/ and libs in /usr/lib (including libSDL.so).
> There probably is something obvious I missed, but I don't see what...
> do you have any idea about this?
> Thanks a lot,
>
>
> --
> Matthieu Villeneuve
> _______________________________________________
> Pal-devel mailing list
> Pal-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/pal-devel

Thanks for reporting this, there was quite a stupid mistake in the  
ffi.lisp that prevented PAL from loading the foreign dynamic libraries.
Should be fixed in the CVS by now, alternatively you could change the  
library definitions in the beginning of pal/ffi.lisp to be as follows:

(cffi:define-foreign-library sdl
   (:windows "SDL")
   (:unix (:or "libSDL-1.2.so.0" "libSDL-1.2.so")))

(cffi:define-foreign-library sdl-mixer
   (:windows "SDL_mixer")
   (:unix (:or "libSDL_mixer-1.2.so.0" "libSDL_mixer-1.2.so")))

(cffi:define-foreign-library sdl-image
   (:windows "SDL_image")
   (:unix (:or "libSDL_image-1.2.so.0" "libSDL_image-1.2.so")))

(cffi:define-foreign-library opengl
   (:windows "opengl32.dll")
   (:unix (:or "libGL.so")))

It is possible that you still need to change the lib*.so.n.n versions to  
those matching your installation.



More information about the pal-devel mailing list