[cl-opengl-devel] errors with cffi changes?

Charlie McMackin charliemac+cl-opengl at gmail.com
Thu Jun 5 02:48:44 UTC 2008


Have there been any changes in CFFI recently that causes problems with
cl-opengl? I personally am seeing errors with funcs.lisp that look
like this:

; compiling (DEFGLFUN ("glTexSubImage1D" TEX-SUB-IMAGE-1D) ...)
; file: /home/charlie/opengl/cl-opengl/gl/funcs.lisp
; in: DEFGLFUN ("glTexSubImage1D" TEX-SUB-IMAGE-1D)
;     (CL-OPENGL-BINDINGS::DEFGLFUN
;    ("glTexSubImage1D" CL-OPENGL-BINDINGS:TEX-SUB-IMAGE-1D) :VOID
;    (CL-OPENGL-BINDINGS::TARGET CL-OPENGL-BINDINGS:ENUM)
;    (CL-OPENGL-BINDINGS::LEVEL CL-OPENGL-BINDINGS:INT)
;    (CL-OPENGL-BINDINGS::XOFFSET CL-OPENGL-BINDINGS:INT)
;    (CL-OPENGL-BINDINGS::WIDTH CL-OPENGL-BINDINGS:SIZEI)
;    (FORMAT CL-OPENGL-BINDINGS:ENUM) (TYPE CL-OPENGL-BINDINGS:ENUM)
;    (CL-OPENGL-BINDINGS::PIXELS (:POINTER CL-OPENGL-BINDINGS:VOID)))
; --> PROGN
; ==>
;   (CFFI:DEFCFUN
;    ("glTexSubImage1D" CL-OPENGL-BINDINGS:TEX-SUB-IMAGE-1D :LIBRARY
;     CL-OPENGL-BINDINGS::OPENGL)
;    :VOID (CL-OPENGL-BINDINGS::TARGET CL-OPENGL-BINDINGS:ENUM)
;    (CL-OPENGL-BINDINGS::LEVEL CL-OPENGL-BINDINGS:INT)
;    (CL-OPENGL-BINDINGS::XOFFSET CL-OPENGL-BINDINGS:INT)
;    (CL-OPENGL-BINDINGS::WIDTH CL-OPENGL-BINDINGS:SIZEI)
;    (FORMAT CL-OPENGL-BINDINGS:ENUM) (TYPE CL-OPENGL-BINDINGS:ENUM)
;    (CL-OPENGL-BINDINGS::PIXELS (:POINTER CL-OPENGL-BINDINGS:VOID)))
;
; caught ERROR:
;   (during macroexpansion of (DEFCFUN ("glTexSubImage1D"
TEX-SUB-IMAGE-1D ...) ...))
;   The value NIL
;   is not of type
;     (OR (VECTOR CHARACTER) (VECTOR NIL) UNSIGNED-BYTE BASE-STRING).


Basically this occurs for the 300+ defglfuns in funcs.lisp.
(interestingly the defglexts appear to compile fine) I had previously
been working with cffi+lotsofstuff but recently changed back to cffi
main. I have tested with both darcs cffi and cffi+lotsofstuff on
sbcl+threads 1.0.15 and 1.0.17, each time deleting  .fasls, with the
same results. Has anyone else experienced something similar?

charlie



More information about the cl-opengl-devel mailing list