[cl-opengl-devel] sbcl "sb-ext:save-lisp-and-die" does not run (glutInit ?)
padovani
josepadovani at yahoo.com.br
Wed Jun 24 04:23:12 UTC 2009
hello,
I am making some tests with cl-opengl to make standalone executables
with "sb-ext:save-lisp-and-die"...
I am usign SBCL 1.0.29 in Mac OSX and have downloaded the "thomas"
version available from
(http://www.esden.net/content/lisp/cl-mac-native-opengl-thomas-0.1.tar.bz2)...
(is this one the recommended version for Mac OSX?)
My first attempt was to create an external from the redbook cube.lisp
example...
so, after evaluating through slime "(require 'asdf)" and all the
functions of cube.lisp, I have evalueted this code:
(sb-ext:save-lisp-and-die "rb-cube-binario" :executable t
:save-runtime-options t :toplevel 'rb-cube)
But when I try to run the executable binary "./rb-cube-binario" from
terminal I get this error:
/Users/ze/sbcl-lib/cl-opengl-thomas-0.1/examples/redbook/rb-cube-binario
; exit;
2009-06-24 01:14:32.606 rb-cube-binario[67793:10b] GLUT Fatal Error:
internal error: NSInternalInconsistencyException, reason: Error (1002)
creating CGSWindow
It seems to be related to "glutInit(&argc, argv);", in a C syntax, but I
have no idead on how to add this in cl-opengl style...
When running "(rb-cube)" from slime I get no errors...
Thanks for any tips.
josé
--
http://www.padovani.googlepages.com
More information about the cl-opengl-devel
mailing list