The problem is that on OSX programs launched from the aqua interface
do not read the files like .profile to get environment variables --
those are only available to programs launched via a shell. There is,
however, a file that provides this sort of info for aqua interfaces.
It is
~/.MacOSX/environment.plist
It probably doesn't exist, so you'll need to make it. I've pasted
the contents of mine below. Just change the directory to reflect
your csound install and you should be set. (oh, and log out and log
back in for the changes to take effect)
--Julian
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http:// www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <dict> <key>OPCODEDIR</key> <string>/usr/local/lib/csound/opcodes</string> <key>OPCODEDIR64</key> <string>/usr/local/lib/csound/opcodes64</string> </dict> </plist>
------- Previous Message ------- Hi List,
After checking the archives, I just wanted to follow up to see if
anyone had figured out how to set environment variables from within a
patcher to point to Csound's OPCODEDIR or OPCODEDIR64 (for double
precision).
Consistent with the archived posts, I am able to load all opcodes
that are in Csound's libcsound.a, but all external .dylib modules
don't seem to be loaded.
I'm using Miller's latest 0.39 Pd.app distribution. I have all
opcode .dylib's in /Applications/Pd.app/Contents/Resources/bin/
*.dylib ... has anyone been able to load external modules within
csoundapi~ for Pd ??? What's the trick ?
-dayfive