Csound Csound-dev Csound-tekno Search About

[Csnd] Csoundlib not found

Date2022-10-26 20:35
FromRaoul MEGELAS
Subject[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:  /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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2022-10-26 21:01
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Csoundlib not found
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

> On 26 Oct 2022, at 20:35, Raoul MEGELAS  wrote:
> 
> *Warning*
> 
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> 
>        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:  /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://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ca0586824d34f4fdb71fa08dab78940e0%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638024097393216975%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1K7u5FDIpfg8VFp%2BjLDhqtNB8gWpeLor%2FBoZkYT5qmo%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ca0586824d34f4fdb71fa08dab78940e0%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638024097393216975%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ir3IkbzRbF4jlqg6kImgx8WMQf%2FLtmrUq1ZbN3DvBhM%3D&reserved=0
> Discussions of bugs and features can be posted here

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

Date2022-10-26 21:11
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Csoundlib not found
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 ,
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)


========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 26 Oct 2022, at 21:01, Victor Lazzarini  wrote:
> 
> 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
> 
>> On 26 Oct 2022, at 20:35, Raoul MEGELAS  wrote:
>> 
>> *Warning*
>> 
>> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>> 
>>       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:  /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://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cec88b89a003742aeeed908dab78cea88%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638024113109903610%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1YXHG22lb5DvwblKEveKGEr7%2FSGJzsWqTRWjk46UoBg%3D&reserved=0
>> Send bugs reports to
>>       https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cec88b89a003742aeeed908dab78cea88%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638024113109903610%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CIiZsEKI1v%2BnU52%2Bhre3yNXkmzniCJmS%2BToDXnUNehM%3D&reserved=0
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cec88b89a003742aeeed908dab78cea88%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638024113109903610%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1YXHG22lb5DvwblKEveKGEr7%2FSGJzsWqTRWjk46UoBg%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Cec88b89a003742aeeed908dab78cea88%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638024113109903610%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CIiZsEKI1v%2BnU52%2Bhre3yNXkmzniCJmS%2BToDXnUNehM%3D&reserved=0
> Discussions of bugs and features can be posted here


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

Date2022-10-27 06:32
FromRaoul MEGELAS
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Csoundlib not found
Thanks Victor,

I  have it working now.

Raoul



On 26 Oct 2022, at 22:01, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

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

On 26 Oct 2022, at 20:35, Raoul MEGELAS <rmgls@orange.fr> wrote:

*Warning*

This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.

      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://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ca0586824d34f4fdb71fa08dab78940e0%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638024097393216975%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=1K7u5FDIpfg8VFp%2BjLDhqtNB8gWpeLor%2FBoZkYT5qmo%3D&amp;reserved=0
Send bugs reports to
      https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&amp;data=05%7C01%7CVictor.Lazzarini%40mu.ie%7Ca0586824d34f4fdb71fa08dab78940e0%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638024097393216975%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=ir3IkbzRbF4jlqg6kImgx8WMQf%2FLtmrUq1ZbN3DvBhM%3D&amp;reserved=0
Discussions of bugs and features can be posted here

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