When I create a binary with the default toplevel, I can start the binary and
even load SDL back into it without crashing. It crashes as soon as I run one
of the examples, though.
$ sbcl
* (asdf:oos 'asdf:load-op :lispbuilder-sdl-examples)
NIL
* (defun load-sdl ()
(cffi:define-foreign-library sdl
(:darwin (:framework "SDL")))
(cffi:use-foreign-library sdl))
LOAD-SDL
* (save-lisp-and-die "test" :executable t)
[undoing binding stack and other enclosing state... done]
[saving current Lisp image into /Users/elliott/asdf/blackthorn/test:
writing 2824 bytes from the read-only space at 0x04000000
writing 1904 bytes from the static space at 0x04100000
writing 31449088 bytes from the dynamic space at 0x10000000
done]
$ ./test
* (load-sdl)
STYLE-WARNING: Undefined alien: "SDL_getenv"
STYLE-WARNING: Undefined alien: "SDL_putenv"
#<CFFI::FOREIGN-LIBRARY {11EBCC79}>
* (sdl-examples:mandelbrot)
[ error ... ]
On Thu, May 14, 2009 at 7:27 PM, Luke J Crook <[email protected]> wrote:
> Elliott Slaughter <elliottslaugh...@...> writes:
>
> >
> >
> > On Sun, May 10, 2009 at 9:05 AM, Luke Crook <luke-bul7fGZb
> [email protected]> wrote:
> >
> > Can you create and run a simple example using only the lispbuilder-sdl
> > library?
> >
> > The following generates exactly the same error:$ sbcl* (asdf:oos
> 'asdf:load-
> op :lispbuilder-sdl-examples)* (save-lisp-and-die "test" :executable
> t :toplevel #'sdl-examples:mandelbrot)
> > $ ./test[ error... ]-- 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
> >
>
> I'm probably grasping as straws here; but what if you create an empty
> defun?,
> e.g. (defun run-me () nil) ? What if you only load lispbuilder-sdl-cffi
> into
> the image and then create the empty defun? I would be interesting to know
> if
> just loading the package into the image causes an error.
>
> - Luke
>
> _______________________________________________
> application-builder mailing list
> [email protected]
> http://www.lispniks.com/mailman/listinfo/application-builder
>
--
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
_______________________________________________
application-builder mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/application-builder