[CM] compilation problems

Geoff Lee g.lee@ed.ac.uk
Fri, 09 Feb 2007 09:58:08 +0000


Achim Bornhoeft wrote:
> 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.

Doesn't seem to be your problem, but as a datapoint I get this exact error if I try to compile any instrument which is in a directory with a space somewhere in the pathname.

HTH

-geoff  
> 
> 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]
> 
> 
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
> 

-- 
______________________________________
Geoff Lee <G.Lee@ed.ac.uk>
Computing Support
School of Arts, Culture and Environment
University of Edinburgh
20 Chambers St,
Edinburgh, Scotland,
EH1 1JZ
Tel: +44 (0)131 650 2341
______________________________________