Csound Csound-dev Csound-tekno Search About

[Csnd] Path error in sound from git

Date2023-03-14 08:47
FromRaoul MEGELAS
Subject[Csnd] Path error in sound from git
Hello all,
As the subject says, I get an path error running csound
Just compiled from git.
Tool -L /usr/bin/csound gives:
p/usr/local/bin/csound:
	@rpath/CsoundLib64.framework/Versions/6.0/CsoundLib64 (compatibility version 6.0.0, current version 0.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)

The frameworks in my library/frameworks is correctly installed.

Any hint would help.

Best.

Raoul

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

Date2023-03-14 17:24
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Path error in sound from git
yes, since Monterrey, Apple changed the search paths for Frameworks and it’s all a bit of a mess.

In my system, the Csound built with CMake is installed in ~/bin, so this is what I have (with Csound 7.0)

victor@firebird debug % otool -L ~/bin/csound                                          
/Users/victor/bin/csound (architecture x86_64):
	@rpath/CsoundLib64.framework/Versions/7.0/CsoundLib64 (compatibility version 7.0.0, current version 0.0.0)

Now this works correctly because the RPATH is set into the executable. With 

victor@firebird debug % otool -l ~/bin/csound
….
Load command 18
          cmd LC_RPATH
      cmdsize 48
         path /Users/victor/Library/Frameworks (offset 12)


This should be done by CMake when it builds Csound. But if there is no RPATH in the executable, you can add one

install_name_tool  -add_rpath new  

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

> On 14 Mar 2023, at 08:47, 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 all,
> As the subject says, I get an path error running csound
> Just compiled from git.
> Tool -L /usr/bin/csound gives:
> p/usr/local/bin/csound:
>        @rpath/CsoundLib64.framework/Versions/6.0/CsoundLib64 (compatibility version 6.0.0, current version 0.0.0)
>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
> 
> The frameworks in my library/frameworks is correctly installed.
> 
> Any hint would help.
> 
> Best.
> 
> Raoul
> 
> 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%7Cefd1ae15a35c42d758d408db246900a2%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638143805668802331%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9iVygMKclcuhSxUbQy7tNVuPE9yhZL8J5gNHYXSyxfk%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%7Cefd1ae15a35c42d758d408db246900a2%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638143805668802331%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=choNyrPPeCESTXXNtSwhRMsM0diDa7ECinUqmR7Pm8U%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

Date2023-03-15 06:54
FromRaoul MEGELAS
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Path error in sound from git
Thanks Victor I will do it .



> On 14 Mar 2023, at 18:24, Victor Lazzarini  wrote:
> 
> yes, since Monterrey, Apple changed the search paths for Frameworks and it’s all a bit of a mess.
> 
> In my system, the Csound built with CMake is installed in ~/bin, so this is what I have (with Csound 7.0)
> 
> victor@firebird debug % otool -L ~/bin/csound                                          
> /Users/victor/bin/csound (architecture x86_64):
> 	@rpath/CsoundLib64.framework/Versions/7.0/CsoundLib64 (compatibility version 7.0.0, current version 0.0.0)
> 
> Now this works correctly because the RPATH is set into the executable. With 
> 
> victor@firebird debug % otool -l ~/bin/csound
> ….
> Load command 18
>          cmd LC_RPATH
>      cmdsize 48
>         path /Users/victor/Library/Frameworks (offset 12)
> 
> 
> This should be done by CMake when it builds Csound. But if there is no RPATH in the executable, you can add one
> 
> install_name_tool  -add_rpath new  
> 
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 14 Mar 2023, at 08:47, 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 all,
>> As the subject says, I get an path error running csound
>> Just compiled from git.
>> Tool -L /usr/bin/csound gives:
>> p/usr/local/bin/csound:
>>       @rpath/CsoundLib64.framework/Versions/6.0/CsoundLib64 (compatibility version 6.0.0, current version 0.0.0)
>>       /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
>> 
>> The frameworks in my library/frameworks is correctly installed.
>> 
>> Any hint would help.
>> 
>> Best.
>> 
>> Raoul
>> 
>> 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%7Cefd1ae15a35c42d758d408db246900a2%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638143805668802331%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9iVygMKclcuhSxUbQy7tNVuPE9yhZL8J5gNHYXSyxfk%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%7Cefd1ae15a35c42d758d408db246900a2%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638143805668802331%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=choNyrPPeCESTXXNtSwhRMsM0diDa7ECinUqmR7Pm8U%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

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