borodust / cl-bodge

Feature-rich game framework for Common Lisp
http://borodust.org/projects/cl-bodge/
MIT License
174 stars 14 forks source link

quicklist install error #81

Closed absrnd closed 6 years ago

absrnd commented 6 years ago

Installing on SBCL I get the following error message:

; file: /home/stuartm/quicklisp/dists/org.borodust.bodge/software/bodge-sndfile-20171121230741/main.lisp ; in: DEFUN WRITE-SHORT-SAMPLES-INTO-STREAM ; (STATIC-VECTORS:WITH-STATIC-VECTOR (BODGE-SNDFILE::BUF ; (LENGTH BODGE-SNDFILE::SAMPLES) ; :ELEMENT-TYPE '(SIGNED-BYTE 16) ; :INITIAL-CONTENTS BODGE-SNDFILE::SAMPLES) ; (BODGE-SNDFILE::%CATCH-SOUND-ERRORS (BODGE-SNDFILE::SNDFILE) ; (%SNDFILE:WRITE-SHORT BODGE-SNDFILE::SNDFILE ; (STATIC-VECTORS:STATIC-VECTOR-POINTER ; BODGE-SNDFILE::BUF) ; (LENGTH BODGE-SNDFILE::BUF))) ; (%SNDFILE:CLOSE BODGE-SNDFILE::SNDFILE) ; (LET ((BODGE-SNDFILE::SIZE ; (BODGE-SNDFILE::VIRTUAL-FILE-MAX-POSITION ; BODGE-SNDFILE::VIRTUAL-FILE))) ; (WRITE-SEQUENCE ; (BODGE-SNDFILE::VIRTUAL-FILE-DATA BODGE-SNDFILE::VIRTUAL-FILE) STREAM ; :END BODGE-SNDFILE::SIZE) ; BODGE-SNDFILE::SIZE)) ; ; caught ERROR: ; during macroexpansion of ; (STATIC-VECTORS:WITH-STATIC-VECTOR (BUF # :ELEMENT-TYPE ...) ; (%CATCH-SOUND-ERRORS # ; #) ; ...). ; Use BREAK-ON-SIGNALS to intercept. ;
; error while parsing arguments to WITH-STATIC-VECTOR DEFMACRO: ; unknown keyword: :INITIAL-CONTENTS; expected one of :ELEMENT-TYPE, :INITIAL-ELEMENT ; No value..... ; ; caught ERROR: ; during macroexpansion of ; (STATIC-VECTORS:WITH-STATIC-VECTOR (BUF # :ELEMENT-TYPE ...) ; (%CATCH-SOUND-ERRORS # ; #) ; ...). ; Use BREAK-ON-SIGNALS to intercept. ;
; error while parsing arguments to WITH-STATIC-VECTOR DEFMACRO: ; unknown keyword: :INITIAL-CONTENTS; expected one of :ELEMENT-TYPE, :INITIAL-ELEMENT .; ; compilation unit aborted ; caught 2 fatal ERROR conditions ; caught 2 ERROR conditions

borodust commented 6 years ago

You need to update static-vectors. Check if you have static-vectors in ~/quicklisp/local-projects/. If not, run

(ql:update-all-dists)

and try loading cl-bodge again.

absrnd commented 6 years ago

Great - that worked. A couple of things to that might be useful for others with similar problem:

  1. static-vectors is in the quicklisp distro and is installed in ~/quicklisp/dists/quicklisp/software (so did not need to install into local-projects)

  2. ql:update-all-dists did not remove the old version of static-vectors (v1.8.2) which was still being found even when I also had v1.8.3 installed - I deleted v1.8.2 manually which fixed this.

Thanks for your prompt reply!