If you download SBCL for win32, the following code worked for me, in
this making the mandelbrot example work :

(defun main1()
 "Mandelbrot: main entry function"
 (cffi:define-foreign-library sdl
                              (t (:default "SDL")))
 (cffi:use-foreign-library sdl)
 (sdl:with-init ()
                (sdl-examples:mandelbrot))
 (sb-ext:quit))

Then :

 (sb-ext:save-lisp-and-die "test.exe" :purify t :toplevel #'main1 :executable t)


On 03/07/07, Elliott Slaughter <[EMAIL PROTECTED]> wrote:
> I recently installed lispbuilder-sdl onto my system because I want to try
> developing a 2D game in CL. I am using Clisp on Windows. I have set up asdf
> and lispbuilder-sdl, and the example works when I type
> (sdl-examples:mouse-painter) .
>
> I would like to try building a binary of this program (because when I
> develop my game, I want to be able to distribute it), so I tried the method
> described in http://www.frank-buss.de/lisp/clisp.html .
> However, the system gives an error:
>
> ** - Continuable Error
>  FFI::FOREIGN-CALL-OUT: no dynamic object named "SDL_Init" in library
> :DEFAULT
> If you continue (by typing 'continue'): Skip foreign object creation
> Break 1 [1]>
>
> The program I attempted to build looks like:
>
>  (asdf:operate 'asdf:load-op :cffi)
>
> (asdf:operate 'asdf:load-op :lispbuilder-sdl-binaries)
>
> (asdf:operate 'asdf:load-op :lispbuilder-sdl)
>
> (asdf:operate 'asdf:load-op :lispbuilder-sdl-examples)
>
>  (defun main ()
>   (sdl-examples:mouse-painter)
>    (quit))
>
> If anyone has ideas about why this doesn't work, or suggestions about how to
> make it better, I would appreciate it. I am after all, fairly new to this.
>
> --
> "Any road followed precisely to its end leads precisely nowhere." -Frank
> Herbert
> Elliott Slaughter
> [EMAIL PROTECTED]
> _______________________________________________
> application-builder mailing list
> [email protected]
> http://www.lispniks.com/mailman/listinfo/application-builder
>
>
_______________________________________________
application-builder mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/application-builder

Reply via email to