>>>>> "rcc" == Rodrigo Coutinho Correia <[EMAIL PROTECTED]> writes:

  rcc> i'm trying to load SDL inside cmucl with uffi-1.1.0 SDL is
  rcc> installed in /usr/lib/ as libSDL.so, pointing to
  rcc> /usr/lib/libSDL-1.2.3.so.0.0.3 (i even try to load this last
  rcc> .so file without success!)
  rcc> 
  rcc> the results, after loading uffi are:
  rcc> * (uffi:load-foreign-library #p"/usr/lib/libSDL.so")
  rcc> Error in function SYSTEM::LOAD-OBJECT-FILE:
  rcc> Can't open object "/usr/lib/libSDL.so": "/usr/lib/libSDL.so:
  rcc> undefined symbol: pthread_create"

it looks like the SDL library has a dependency on the pthreads
library. I'm not familiar with UFFI, but in the CMUCL FFI there is a
mechanism for resolving dependencies when you load an object file:

   (ext:load-foreign '("/usr/lib/libSDL.so")
       :libraries '("-lpthread"))

>From the UFFI documentation, the SUPPORTING-LIBRARIES argument to the
LOAD-FOREIGN-LIBRARY function looks promising.  

-- 
Eric Marsden                          <URL:http://www.laas.fr/~emarsden/>

Reply via email to