Trying to install listbuilder-sdl on SBCL / windows

217 views
Skip to first unread message

Gwenael Tranvouez

unread,
Jun 22, 2012, 5:22:26 AM6/22/12
to lispb...@googlegroups.com
Hello,

I'm working on a game to learn lisp, and i just tried installing listbuilder-sdl, following the instructions from:
http://code.google.com/p/lispbuilder/wiki/WindowsSBCL
However, when I start SBCL and it starts scanning and running the sdl stuff, I get the following error:

(CFFI::FL-ERROR                                                                
 "Unable to load foreign library (~A).~%  ~A"                                  
 SDL                                                                           
 "Error opening shared object \"C:\\\\Program Files\\\\Steel Bank Common Lisp\\\\1.0.53.0.mswinmt.1028-0bfe91b\\\\site\\\\lispbuilder-sdl\\\\bin\\\\SDL.dll\":  193.")                                                                       

and when I choose the option to recompile, I get  the same error.

I'm on windows 7, using SBCL v1.0.533.0.

Does anyone have an idea?

Thank you in advance,
Gwenael.


Elliott Slaughter

unread,
Jun 22, 2012, 12:36:13 PM6/22/12
to lispb...@googlegroups.com
On Fri, Jun 22, 2012 at 2:22 AM, Gwenael Tranvouez <gtran...@gmail.com> wrote:
Hello,

I'm working on a game to learn lisp, and i just tried installing listbuilder-sdl, following the instructions from:
http://code.google.com/p/lispbuilder/wiki/WindowsSBCL

If you got your copy of lispbuilder-sdl from the download page like this guide suggests (http://code.google.com/p/lispbuilder/downloads/list), I would *highly* recommend using Quicklisp instead (http://www.quicklisp.org/). The version on the downloads page is old and could quite possibly have bugs.

However, when I start SBCL and it starts scanning and running the sdl stuff, I get the following error:

(CFFI::FL-ERROR                                                                
 "Unable to load foreign library (~A).~%  ~A"                                  
 SDL                                                                           
 "Error opening shared object \"C:\\\\Program Files\\\\Steel Bank Common Lisp\\\\1.0.53.0.mswinmt.1028-0bfe91b\\\\site\\\\lispbuilder-sdl\\\\bin\\\\SDL.dll\":  193.")                                                                       

and when I choose the option to recompile, I get  the same error.

I'm on windows 7, using SBCL v1.0.533.0.

Where did you get your copies of SBCL and SDL from? I'm assuming this is the vanilla SBCL, in which case you'll need to make sure you have a 32-bit copy of SDL. You can check that SBCL is 32-bit by opening the REPL and typing

*features*

which usually produces a list like the following (on a 32-bit Linux)

(:X86 :UNIX :ELF :LINUX ....)

If you're sure SBCL and SDL are both 32-bit, then you could ask the CFFI list what error 193 means, because I don't honestly have a clue. You could also check your downloads to make sure they weren't corrupted, if you haven't already done that.

Does anyone have an idea?

Thank you in advance,
Gwenael.





--
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay

Elliott Slaughter

unread,
Jun 22, 2012, 12:38:41 PM6/22/12
to lispb...@googlegroups.com
On Fri, Jun 22, 2012 at 9:36 AM, Elliott Slaughter <elliotts...@gmail.com> wrote:
On Fri, Jun 22, 2012 at 2:22 AM, Gwenael Tranvouez <gtran...@gmail.com> wrote:
Hello,

I'm working on a game to learn lisp, and i just tried installing listbuilder-sdl, following the instructions from:
http://code.google.com/p/lispbuilder/wiki/WindowsSBCL

If you got your copy of lispbuilder-sdl from the download page like this guide suggests (http://code.google.com/p/lispbuilder/downloads/list), I would *highly* recommend using Quicklisp instead (http://www.quicklisp.org/). The version on the downloads page is old and could quite possibly have bugs.

However, when I start SBCL and it starts scanning and running the sdl stuff, I get the following error:

(CFFI::FL-ERROR                                                                
 "Unable to load foreign library (~A).~%  ~A"                                  
 SDL                                                                           
 "Error opening shared object \"C:\\\\Program Files\\\\Steel Bank Common Lisp\\\\1.0.53.0.mswinmt.1028-0bfe91b\\\\site\\\\lispbuilder-sdl\\\\bin\\\\SDL.dll\":  193.")                                                                       

and when I choose the option to recompile, I get  the same error.

I'm on windows 7, using SBCL v1.0.533.0.

Where did you get your copies of SBCL and SDL from? I'm assuming this is the vanilla SBCL, in which case you'll need to make sure you have a 32-bit copy of SDL. You can check that SBCL is 32-bit by opening the REPL and typing

*features*

which usually produces a list like the following (on a 32-bit Linux)

(:X86 :UNIX :ELF :LINUX ....)

If you're sure SBCL and SDL are both 32-bit, then you could ask the CFFI list what error 193 means, because I don't honestly have a clue. You could also check your downloads to make sure they weren't corrupted, if you haven't already done that.

And here's a link to the CFFI mailing list, in case you need it:

http://www.common-lisp.net/mailman/listinfo/cffi-devel

Does anyone have an idea?

Thank you in advance,
Gwenael.





--
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay

Gwenael Tranvouez

unread,
Jun 23, 2012, 4:15:40 AM6/23/12
to lispb...@googlegroups.com


Le vendredi 22 juin 2012 18:38:41 UTC+2, Elliott Slaughter a écrit :

And here's a link to the CFFI mailing list, in case you need it:

http://www.common-lisp.net/mailman/listinfo/cffi-devel


Thank you for your help. I'm going to try your suggestions (quicklisp first).

Gwenael.

mitk...@gmail.com

unread,
Jun 17, 2015, 1:55:08 PM6/17/15
to lispb...@googlegroups.com
Hi, did you or anybody else manage to find a solution to this error?
Ive been trying to do the same thing as you are (with quicklisp) and running into the same error.

Im on windows 32bit running SBCL.

Başar Erdivanlı

unread,
Jun 17, 2015, 6:08:03 PM6/17/15
to lispb...@googlegroups.com
I put this line into my .sbclrc:

(setf cffi:*foreign-library-directories* '(#P"D:/cffi-dlls/"))

You can find the dll files in the zip file attached. I use 32-bit SBCL 1.2.1 on a windows 7.



cffi-dlls.zip
Reply all
Reply to author
Forward
0 new messages