[Csnd] csoundAPI_examples for racket on osx
Date | 2014-04-11 17:24 |
From | Mark Millikan |
Subject | [Csnd] csoundAPI_examples for racket on osx |
1. In the cs6ffi.rkt file:
… (define-ffi-definer define-csound (ffi-lib "libcsound64")) … the name of the dynamic library < libcsound64> is specific to linux, no?
On osx 10.7.5 it appears to be <libcsnd6> and/or <libcsnd6.6.0>, 2. example1.rkt executes without error if invoked as: racket example1.rkt or gracket example1.rkt
-- from the terminal with the pwd set to <path/to/racket/examples> 3. Creating an executable from within DrRacket works and the resulting executable runs ok.
4. Running example1.rkt within DrRacket results in: Welcome to DrRacket, version 6.0.0.6--2014-04-06(e08ffde1/d) [3m]. Language: racket [custom]. -1 -1
> i.e., the two function calls with integer result codes return <generic error>. Am I stumbling toward enlightenment? |
Date | 2014-04-11 18:35 |
From | Steven Yi |
Subject | Re: [Csnd] csoundAPI_examples for racket on osx |
Hi Mark, I'm somewhat new to Racket and am really using this as a learning project. That said, I'm happy to have any suggestions for improvements for these examples! I'll answer inline below, thanks! steven On Fri, Apr 11, 2014 at 12:24 PM, Mark Millikan |
Date | 2014-04-11 19:10 |
From | Steven Yi |
Subject | Re: [Csnd] csoundAPI_examples for racket on osx |
Update: I tried working on the library loading one way which was a mess (tried to use with-handlers... that was not fun!). I did realize I could just check for the existence of the CsoundLib64.framework. The startup code is now checking for the framework in ~/Library/Frameworks, then in /Library/Frameworks, then finally falling back to libcsound64. This should hopefully work now on all operating systems. (Change is pushed to Git) On Fri, Apr 11, 2014 at 1:35 PM, Steven Yi |