[Csnd] Csoundlib not found

Hello,

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?

If you need more details, I will send them.

Thanks in advance.

Raoul MEGELAS

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

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

yes, I did that. These are the CMake commands needed (I have these in my Custom.cmake)

set(CMAKE_MACOSX_RPATH 1)
set(CMAKE_INSTALL_RPATH "$ENV{HOME}/Library/Frameworks")

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)

Load command 18
          cmd LC_RPATH
      cmdsize 48
         path /Users/victor/Library/Frameworks (offset 12)

Thanks Victor,

I have it working now.

Raoul
rmgls@orange.fr