After cloning csound and cmake
The build is done correctly and installed too.
Running csound XXX.csd
I get this error:
dyld[3259]: Library not loaded: @rpath/CsoundLib64.framework/Versions/6.0/CsoundLib64
Referenced from: <E8FA76D4-DC00-3BEF-B5C0-71920AF73A1F> /usr/local/bin/csound
Reason: tried: '/System/Volumes/Preboot/Cryptexes/OS@rpath/CsoundLib64.framework/Versions/6.0/CsoundLib64' (no such file), '/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64' (no such file), '/System/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64' (no such file, not in dyld cache)
Effectively it is not installed in this directory.
Details:
I upgraded to osx 13, perhaps this is the failure reason?
yes, Monterrey stops searching the local lib directory for the installation. That's a real pain.
CMake installs it in $HOME/Library/Frameworks
In previous versions of MacOS, this directory would be searched, not anymore.
Solutions:
1) set RPATH to add that directory when building (I think I did that but can't recall exactly), works for the csound command as it is built by cmake
2) Copy the framework from that directory to the /System/Library/Frameworks location
3) Using install_name_tool edit the RPATH in the programs using Csound like CsoundQT
If you search the list you will see several messages I sent describing this issue.
Prof. Victor Lazzarini
Maynooth University
Ireland
This add the right RPATH to the executables built with Csound and so it all works. If you run otool -l <path-to-csound>,
you will see something like this (with your user directory)