[CM] compilation problems

Achim Bornhoeft born@uni-tuebingen.de
Thu, 08 Feb 2007 21:13:07 +0100


Hello,
I tried to compile an instrument from the clm Documentation under OS X
10.4.8 (PPC) with cm.app 2.10.0 and aquamcas 0.99d and got the following
error message because the shared library (in this case
clm_granulate_sound.dylib) is not created.

Can somebody help me with this? It's probably something very obvious ...
Thank you very much in advance,
Achim

---

(in-package :clm)

(definstrument granulate-sound (file beg &optional dur (orig-beg 0.0)
(exp-amt 1.0))
   (let* ((f-srate (sound-srate file))
	 (f-start (round (* f-srate orig-beg)))
          (f (open-input file :start f-start))
	 (st (floor (* beg *srate*)))
	 (new-dur (or dur (- (sound-duration file) orig-beg)))
	 (exA (make-granulate :input f :expansion exp-amt))
	 (nd (+ st (floor (* *srate* new-dur)))))
     (run
      (loop for i from st below nd do
        (outa i (granulate exA))))
     (close-input f)))

---

CM> (compile-file "granulate-sound.ins")
; Writing "/Users/born/Documents/code/lisp/clm/ins/clm_granulate_sound.c"
;Compiler warnings for
"/Users/born/Documents/code/lisp/clm/ins/granulate-sound.ins" :
;   Unused lexical variable CM::SCORETIME, in (CM::WRITE-EVENT
(GRANULATE-SOUND CM:CLM-FILE T)).; Compiling
"/Users/born/Documents/code/lisp/clm/ins/clm_granulate_sound.c"
#P"/Users/born/Documents/code/lisp/clm/ins/granulate-sound.dfsl"
T
NIL
CM> (load "granulate-sound.dfsl")
; Compiling "/Users/born/Documents/code/lisp/clm/ins/clm_granulate_sound.c"
Invoking restart: Kill this process
; Evaluation aborted

---

Error opening shared library
"/Users/born/Documents/code/lisp/clm/ins/clm_granulate_sound.dylib":
image not found
    [Condition of type SIMPLE-ERROR]