[CM] newbie setup CLM + CMUCL

Bill Schottstaedt bil@ccrma.Stanford.EDU
Mon, 29 Mar 2004 03:58:24 -0800


 > (require :clm)
 > that works fine

in CMUCL this loads a set of Motif bindings.  If you just loaded
CLM, you don't need to do anything, but if you're in CM,
use
   (use-package :clm)


 > (with-sound () (fm-violin 0 1 440 .1))
 > this gives an error
 > Warning: 440.0 is not a known argument keyword.

You don't have CLM imported into the current package,
I guess -- I'd need more details.


 > Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:
 >    -1088380920 is not of type (UNSIGNED-BYTE 32)

It's probably not relevant, but I recently fixed a
similar problem with CMUCL -- its FFI is not good.
Do you have the current version of CLM?


 > Does anyone know how to get this working?

I suggest following the instructions:

/home/bil/clm/ cmucl
CMU Common Lisp 18e, running on cat
With core: /home/bil/test/cmucl/lib/cmucl/lib/lisp.core
Dumped on: Thu, 2003-04-03 05:47:12-08:00 on orion
See <http://www.cons.org/cmucl/> for support information.
Loaded subsystems:
     Python 1.1, target Intel x86
     CLOS 18e (based on PCL September 16 92 PCL (f))
* (load "all.lisp")

; Loading #p"/home/bil/clm/all.lisp".
; Compiling "/home/bil/clm/io.c"
; Compiling "/home/bil/clm/headers.c"
; Compiling "/home/bil/clm/audio.c"
; Compiling "/home/bil/clm/sound.c"
; Compiling "/home/bil/clm/lispcall.c"
; Compiling "/home/bil/clm/sc.c"
; Compiling "/home/bil/clm/cmus.c"
; Creating "/home/bil/clm/libclm.so"
;;ld  -shared -whole-archive -o /home/bil/clm/libclm.so /home/bil/clm/lispcall.o /home/bil/clm/headers.o /home/bil/clm/audio.o 
/home/bil/clm/io.o /home/bil/clm/sound.o /home/bil/clm/cmus.o /home/bil/clm/sc.o  -L/usr/X11R6/lib -lX11
;; Loading #p"/home/bil/clm/clm-package.x86f".
;; Loading #p"/home/bil/clm/initmus.x86f".
;;; Running /usr/bin/ld...
;;; Done.
;; Loading #p"/home/bil/clm/sndlib2clm.x86f".
;; Loading #p"/home/bil/clm/defaults.x86f".
; Building sndplay program: "/home/bil/clm/sndplay"
;; Loading #p"/home/bil/clm/ffi.x86f".
;; Loading #p"/home/bil/clm/io.x86f".
;; Loading #p"/home/bil/clm/mus.x86f".
;; Loading #p"/home/bil/clm/run.x86f".
;; Loading #p"/home/bil/clm/cmus.x86f".
;; Loading #p"/home/bil/clm/sound.x86f".
;; Loading #p"/home/bil/clm/clm-help.x86f".
;; Loading #p"/home/bil/clm/defins.x86f".
;; Loading #p"/home/bil/clm/env.x86f".
;; Loading #p"/home/bil/clm/clm-snd.x86f".
;; Loading #p"/home/bil/clm/rt.x86f".
;; Loading #p"/home/bil/clm/export.x86f".
;; Loading #p"/home/bil/clm/clm1.x86f".
T
* (compile-file "v.ins")
; Writing "/home/bil/clm/clm_lnxcmu_FM_VIOLIN.c"
; Compiling "/home/bil/clm/clm_lnxcmu_FM_VIOLIN.c"
; Creating shared object file "/home/bil/clm/clm_lnxcmu_FM_VIOLIN_0.so"
#p"/home/bil/clm/v.x86f"
NIL
NIL
* (load "v.cmucl")

; Loading #p"/home/bil/clm/v.cmucl".
;;; Running /usr/bin/ld...
;;; Done.
;; Loading #p"/home/bil/clm/v.x86f".
T
* (with-sound () (fm-violin 0 1 440 .1))

"test.snd"