I am using SBCL 1.0.13 on a windows environment, with newest CFFI, Alexandria, Babel, trivial-features and cl-opengl (drawn per darcs where available). However, when trying the command (asdf:operate 'asdf:load-op 'cl-opengl)
I get the following error: ------------------------------------------------- COMMON-LISP-USER> (asdf:operate 'asdf:load-op 'cl-opengl) [...] ; compiling (DEFGLEXTFUN ("glTexParameterIuivEXT" TEX-PARAMETER-IUIV-EXT) ...) ; compiling (DEFGLEXTFUN ("glGetTexParameterIivEXT" GET-TEX-PARAMETER-IIV-EXT) ...) ; compiling (DEFGLEXTFUN ("glGetTexParameterIuivEXT" GET-TEX-PARAMETER-IUIV-EXT) ...) ; compiling (DEFGLEXTFUN ("glClearColorIiEXT" CLEAR-COLOR-II-EXT) ...) ; compiling (DEFGLEXTFUN ("glClearColorIuiEXT" CLEAR-COLOR-IUI-EXT) ...)
; G:\Programme\eclipse\plugins\jasko.tim.lisp.libs_1.0.0\libs\cl-opengl\gl\funcs.fasl written ; compilation finished in 0:00:02 WARNING: COMPILE-FILE warned while performing #<COMPILE-OP NIL {BC49E41}> on #<CL-SOURCE-FILE "funcs" {B9E98F9}>. erred while invoking #<COMPILE-OP NIL {BC49E41}> on #<CL-SOURCE-FILE "funcs" {B9E98F9}> [Condition of type ASDF:COMPILE-FAILED] 0: [RETRY] Retry performing #<ASDF:COMPILE-OP NIL {BC49E41}> on #<ASDF:CL-SOURCE-FILE "funcs" {B9E98F9}>. 1: [ACCEPT] Continue, treating #<ASDF:COMPILE-OP NIL {BC49E41}> on #<ASDF:CL-SOURCE-FILE "funcs" {B9E98F9}> as having been successful. 2: [ABORT] Return to SLIME's top level. 3: [CLOSE-CONNECTION] Close SLIME connection 4: [ABORT] Exit debugger, returning to top level. ]> 2 ------------------------------------------------- A subsequent call to the same command, results in: ------------------------------------------------- COMMON-LISP-USER> (asdf:operate 'asdf:load-op 'cl-opengl)
; compiling file "G:\Programme\eclipse\plugins\jasko.tim.lisp.libs_1.0.0\libs\cl-opengl\gl\package.lisp" (written 27 JUN 2008 06:56:47 PM): ; compiling (DEFPACKAGE #:CL-OPENGL ...)
; G:\Programme\eclipse\plugins\jasko.tim.lisp.libs_1.0.0\libs\cl-opengl\gl\package.fasl written ; compilation finished in 0:00:00 ; compiling file "G:\Programme\eclipse\plugins\jasko.tim.lisp.libs_1.0.0\libs\cl-opengl\gl\util.lisp" (written 27 JUN 2008 06:56:47 PM): ; compiling (IN-PACKAGE #:CL-OPENGL) ; compiling (DEFUN STARTS-WITH ...) ; compiling (DEFUN SIDE-EFFECT-FREE? ...) ; compiling (DEFMACRO ONCE-ONLY ...) ; compiling (DEFUN SYMBOLIC-TYPE->REAL-TYPE ...) ; compiling (DEFUN CFFI-TYPE-TO-GL ...) ; compiling (DEFMACRO WITH-OPENGL-ARRAY ...) ; compiling (DEFMACRO WITH-OPENGL-ARRAYS ...) ; compiling (DEFMACRO WITH-PIXEL-ARRAY ...) ; compiling (DEFMACRO WITH-OPENGL-SEQUENCE ...) ; compiling (DEFUN SYMBOLICATE-PACKAGE ...) ; compiling (DEFUN SYMBOLICATE ...) ; compiling (DEFMACRO WITH-UNIQUE-NAMES ...) ; compiling (DEFMACRO IMPORT-EXPORT ...) ; compiling (DEFMACRO DEFINLINE ...) ; compiling (DEFMACRO DEFINE-GET-FUNCTION ...) ; compiling (DEFMACRO DEFINE-ARRAY-POINTER ...)
; G:\Programme\eclipse\plugins\jasko.tim.lisp.libs_1.0.0\libs\cl-opengl\gl\util.fasl written ; compilation finished in 0:00:00 Execution of a form compiled with errors. Form: (DEFCFUN (glNewList NEW-LIST LIBRARY OPENGL) VOID (LIST UINT) (MODE ENUM)) Compile-time error: (during macroexpansion of (DEFCFUN ("glNewList" NEW-LIST ...) ...)) The value NIL is not of type (OR (VECTOR CHARACTER) (VECTOR NIL) UNSIGNED-BYTE BASE-STRING). [Condition of type SB-INT:COMPILED-PROGRAM-ERROR] 0: [RETRY] Retry performing #<ASDF:LOAD-OP NIL {C254DB9}> on #<ASDF:CL-SOURCE-FILE "funcs" {B9E98F9}>. 1: [ACCEPT] Continue, treating #<ASDF:LOAD-OP NIL {C254DB9}> on #<ASDF:CL-SOURCE-FILE "funcs" {B9E98F9}> as having been successful. 2: [ABORT] Return to SLIME's top level. 3: [CLOSE-CONNECTION] Close SLIME connection 4: [ABORT] Exit debugger, returning to top level. ]> 2 ; ; compilation unit aborted ; caught 1 fatal ERROR condition ------------------------------------------------- Anyone got an idea as to how to solve this problem?
Thanks, Thomas K.
On Sat, Jun 28, 2008 at 10:51 AM, Thomas Karolski Thomas.Karolski@googlemail.com wrote:
Anyone got an idea as to how to solve this problem?
Make sure you have the latest version of alexandria from darcs and recompile with (asdf:oos 'asdf:loas-op :cl-opengl :force t).
Luís Oliveira schrieb:
On Sat, Jun 28, 2008 at 10:51 AM, Thomas Karolski Thomas.Karolski@googlemail.com wrote:
Anyone got an idea as to how to solve this problem?
Make sure you have the latest version of alexandria from darcs and recompile with (asdf:oos 'asdf:loas-op :cl-opengl :force t).
Ah yes. Turns out I only took the zipped version from cliki.net and not the one from the darcs repo. However, now I get this error when trying to compile glut (without the :force T option): ------------------------------------------------------------------ COMMON-LISP-USER> (asdf:oos 'asdf:load-op :cl-glut)
Undefined alien: "glutSetOption" [Condition of type UNDEFINED-ALIEN-ERROR] 0: [RETRY] Retry performing #<ASDF:LOAD-OP NIL {B707439}> on #<ASDF:CL-SOURCE-FILE "state" {C0DACC1}>. 1: [ACCEPT] Continue, treating #<ASDF:LOAD-OP NIL {B707439}> on #<ASDF:CL-SOURCE-FILE "state" {C0DACC1}> as having been successful. 2: [ABORT] Return to SLIME's top level. 3: [CLOSE-CONNECTION] Close SLIME connection 4: [ABORT] Exit debugger, returning to top level. ]> 2 ; ; compilation unit aborted ; caught 1 fatal ERROR condition
------------------------------------------------------------------ ... and with the :force T option ------------------------------------------------------------------ COMMON-LISP-USER> (asdf:oos 'asdf:load-op :cl-glut :force t)
; compiling file "G:\Programme\eclipse\plugins\jasko.tim.lisp.libs_1.0.0\libs\alexandria\package.lisp" (written 28 JUN 2008 01:21:08 PM): ; compiling (DEFPACKAGE :ALEXANDRIA.0.DEV ...) ; ; caught WARNING: ; ALEXANDRIA.0.DEV also exports the following symbols: ; (ALEXANDRIA.0.DEV:POSITIVE-DOUBLE-FLOAT ALEXANDRIA.0.DEV:NEGATIVE-FLOAT ; ALEXANDRIA.0.DEV:NEGATIVE-LONG-FLOAT-P ALEXANDRIA.0.DEV:NON-POSITIVE-FIXNUM ; ALEXANDRIA.0.DEV:NEGATIVE-SINGLE-FLOAT-P ; ALEXANDRIA.0.DEV:NON-POSITIVE-SINGLE-FLOAT ; ALEXANDRIA.0.DEV:NON-NEGATIVE-SINGLE-FLOAT-P ; ALEXANDRIA.0.DEV:NON-NEGATIVE-DOUBLE-FLOAT ; ALEXANDRIA.0.DEV:NON-POSITIVE-REAL ALEXANDRIA.0.DEV:NEGATIVE-RATIONAL ; ALEXANDRIA.0.DEV:NON-NEGATIVE-REAL-P ALEXANDRIA.0.DEV:NON-POSITIVE-RATIONAL ; ...) ; See also: ; The ANSI Standard, Macro DEFPACKAGE
; G:\Programme\eclipse\plugins\jasko.tim.lisp.libs_1.0.0\libs\alexandria\package.fasl written ; compilation finished in 0:00:00 WARNING: COMPILE-FILE warned while performing #<COMPILE-OP (:FORCE NIL) {C211D31}> on #<CL-SOURCE-FILE "package" {AE346F1}>. erred while invoking #<COMPILE-OP (:FORCE NIL) {C211D31}> on #<CL-SOURCE-FILE "package" {AE346F1}> [Condition of type ASDF:COMPILE-FAILED] 0: [RETRY] Retry performing #<ASDF:COMPILE-OP (:FORCE NIL) {C211D31}> on #<ASDF:CL-SOURCE-FILE "package" {AE346F1}>. 1: [ACCEPT] Continue, treating #<ASDF:COMPILE-OP (:FORCE NIL) {C211D31}> on #<ASDF:CL-SOURCE-FILE "package" {AE346F1}> as having been successful. 2: [ABORT] Return to SLIME's top level. 3: [CLOSE-CONNECTION] Close SLIME connection 4: [ABORT] Exit debugger, returning to top level. ]> 2 ; ; compilation unit aborted ; caught 1 fatal ERROR condition ; caught 1 WARNING condition ------------------------------------------------------------------ Any help on this?
Thanks, Thomas K.
On Sat, Jun 28, 2008 at 1:53 PM, Thomas Karolski thomas.karolski@googlemail.com wrote:
Undefined alien: "glutSetOption"
Do you have the freeglut DLL? If so, where? And does (cffi:load-foreign-library "freeglut.dll") find it?
; caught WARNING: ; ALEXANDRIA.0.DEV also exports the following symbols:
You can safely ignore this one.
Luís Oliveira schrieb:
On Sat, Jun 28, 2008 at 1:53 PM, Thomas Karolski thomas.karolski@googlemail.com wrote:
Undefined alien: "glutSetOption"
Do you have the freeglut DLL? If so, where? And does (cffi:load-foreign-library "freeglut.dll") find it?
Its in the windows system32 folder. Compiled from source (freeglut-2.4.0). A call to (cffi:load-foreign-library "freeglut.dll") results in ---------------------------------------------------------- COMMON-LISP-USER> (cffi:load-foreign-library "freeglut.dll")
#<CFFI::FOREIGN-LIBRARY {A9BF1C9}> ----------------------------------------------------------
On Sat, Jun 28, 2008 at 2:09 PM, Thomas Karolski thomas.karolski@googlemail.com wrote:
Its in the windows system32 folder. Compiled from source (freeglut-2.4.0).
Maybe you've compiled it using the stdcall calling convention? This one should work: http://common-lisp.net/~loliveira/tmp/freeglut.dll
Luís Oliveira schrieb:
On Sat, Jun 28, 2008 at 2:09 PM, Thomas Karolski thomas.karolski@googlemail.com wrote:
Its in the windows system32 folder. Compiled from source (freeglut-2.4.0).
Maybe you've compiled it using the stdcall calling convention? This one should work: http://common-lisp.net/~loliveira/tmp/freeglut.dll
Replaced it, but still the same error.
Thomas Karolski Thomas.Karolski@googlemail.com writes:
Maybe you've compiled it using the stdcall calling convention? This one should work: http://common-lisp.net/~loliveira/tmp/freeglut.dll
Replaced it, but still the same error.
Sorry, I'm out of ideas and I don't have a windows box handy to try things out.
cl-opengl-devel@common-lisp.net