[Csnd] Sound framework not found on osx14
Date | 2023-11-10 08:08 |
From | Raoul MEGELAS |
Subject | [Csnd] Sound framework not found on osx14 |
Attachments | csnd_error |
HEllo list, I am really sorry, but I do not find my note about this topic. I built the latest from git correctly and get the following when running Csound or dnoise for instance: , 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 Please, what I miss? 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 |
Date | 2023-11-10 11:36 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
The error dyld[11532]: Library not loaded: @rpath/CsoundLib64.framework/Versions/6.0/CsoundLib64 Referenced from: <0A1953B7-556A-3FF2-B89C-1DC40DF5CF36> /usr/local/bin/dnoise Reason: no LC_RPATH's found is because you probably built version 7.0 and this is looking for Csound 6.0, so there may be two versions in your system. @rpath/CsoundLib64.framework/Versions/7.0/CsoundLib64 would be what you’d see if you build Csound from the develop branch. otool -L csound csound (architecture x86_64): @rpath/CsoundLib64.framework/Versions/7.0/CsoundLib64 (compatibility version 7.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3) csound (architecture arm64): @rpath/CsoundLib64.framework/Versions/7.0/CsoundLib64 (compatibility version 7.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3) and when you install it with make install, you should get the RPATH set to the correct install location, for example: otool -l $HOME/bin/csound ... Load command 18 cmd LC_RPATH cmdsize 48 path /Users/victor/Library/Frameworks ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 10 Nov 2023, at 08:08, Raoul MEGELAS |
Date | 2023-11-10 15:48 |
From | Raoul MEGELAS |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
Attachments | report.tgz |
Vello Victor, you are right, i was building v6! from git as formerly: https://github.csound/csound not on my home directory but on a separate disk where i put all my precious data. this was working fine till the update to osx14.0. now i built csound-devel.zip which run correctly only when i am on myhome/csound-devel/cmakea path; whoen invoked from another directory say myhome, i get the same error as below. i join report.tgz which containts: install.log and otool.log. in .profile i have only the flags for macports. little precision, my shell is default: zsh. hope this help. 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 The error dyld[11532]: Library not loaded: @rpath/CsoundLib64.framework/Versions/6.0/CsoundLib64 Referenced from: <0A1953B7-556A-3FF2-B89C-1DC40DF5CF36> /usr/local/bin/dnoise Reason: no LC_RPATH's found > On 10 Nov 2023, at 12:36, Victor Lazzarini |
Date | 2023-11-10 16:13 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
did you make install?
Prof. Victor Lazzarini
Maynooth University
Ireland
On 10 Nov 2023, at 15:49, Raoul MEGELAS <rmgls2943@gmail.com> wrote:
|
Date | 2023-11-10 16:26 |
From | Raoul MEGELAS |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
Oh yes The install log is the proof.
|
Date | 2023-11-10 16:34 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
I can't read these on my phone. Did you try checking if the installed csound command has an rpath set? Use otool -l In mine the rpath is set correctly
Prof. Victor Lazzarini
Maynooth University
Ireland
On 10 Nov 2023, at 16:27, Raoul MEGELAS <rmgls2943@gmail.com> wrote:
|
Date | 2023-11-10 17:00 |
From | Raoul MEGELAS |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
Some details here: otool -L /usr/local/bin/csound /usr/local/bin/csound: @rpath/CsoundLib64.framework/Versions/7.0/CsoundLib64 (compatibility version 7.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1336.0.0) otool -l /usr/local/bin/csound /usr/local/bin/csound: Load command 0 cmd LC_SEGMENT_64 cmdsize 72 segname __PAGEZERO vmaddr 0x0000000000000000 vmsize 0x0000000100000000 fileoff 0 filesize 0 maxprot 0x00000000 initprot 0x00000000 nsects 0 flags 0x0 Load command 1 cmd LC_SEGMENT_64 cmdsize 632 segname __TEXT vmaddr 0x0000000100000000 vmsize 0x0000000000004000 fileoff 0 filesize 16384 maxprot 0x00000005 initprot 0x00000005 nsects 7 flags 0x0 Section sectname __text segname __TEXT addr 0x00000001000037d0 size 0x000000000000054c offset 14288 align 2^4 (16) reloff 0 nreloc 0 flags 0x80000400 reserved1 0 reserved2 0 Section sectname __stubs segname __TEXT addr 0x0000000100003d1c size 0x0000000000000090 offset 15644 align 2^0 (1) reloff 0 nreloc 0 flags 0x80000408 reserved1 0 (index into indirect symbol table) reserved2 6 (size of stubs) Section sectname __stub_helper segname __TEXT addr 0x0000000100003dac size 0x0000000000000100 offset 15788 align 2^0 (1) reloff 0 nreloc 0 flags 0x80000400 reserved1 0 reserved2 0 Section sectname __cstring segname __TEXT addr 0x0000000100003eac size 0x0000000000000063 offset 16044 align 2^0 (1) reloff 0 nreloc 0 flags 0x00000002 reserved1 0 reserved2 0 Section sectname __const segname __TEXT addr 0x0000000100003f10 size 0x000000000000003c offset 16144 align 2^4 (16) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname __unwind_info segname __TEXT addr 0x0000000100003f4c size 0x0000000000000078 offset 16204 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname __eh_frame segname __TEXT addr 0x0000000100003fc8 size 0x0000000000000038 offset 16328 align 2^3 (8) reloff 0 nreloc 0 flags 0x6800000b reserved1 0 reserved2 0 Load command 2 cmd LC_SEGMENT_64 cmdsize 552 segname __DATA vmaddr 0x0000000100004000 vmsize 0x0000000000004000 fileoff 16384 filesize 16384 maxprot 0x00000003 initprot 0x00000003 nsects 6 flags 0x0 Section sectname __got segname __DATA addr 0x0000000100004000 size 0x0000000000000018 offset 16384 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000006 reserved1 24 (index into indirect symbol table) reserved2 0 Section sectname __la_symbol_ptr segname __DATA addr 0x0000000100004018 size 0x00000000000000c0 offset 16408 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000007 reserved1 27 (index into indirect symbol table) reserved2 0 Section sectname __data segname __DATA addr 0x00000001000040d8 size 0x0000000000000008 offset 16600 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname __program_vars segname __DATA addr 0x00000001000040e0 size 0x0000000000000028 offset 16608 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname __common segname __DATA addr 0x0000000100004108 size 0x0000000000000020 offset 0 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000001 reserved1 0 reserved2 0 Section sectname __bss segname __DATA addr 0x0000000100004128 size 0x0000000000000014 offset 0 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000001 reserved1 0 reserved2 0 Load command 3 cmd LC_SEGMENT_64 cmdsize 72 segname __LINKEDIT vmaddr 0x0000000100008000 vmsize 0x0000000000004000 fileoff 32768 filesize 2056 maxprot 0x00000001 initprot 0x00000001 nsects 0 flags 0x0 Load command 4 cmd LC_DYLD_INFO_ONLY cmdsize 48 rebase_off 32768 rebase_size 8 bind_off 32776 bind_size 56 weak_bind_off 0 weak_bind_size 0 lazy_bind_off 32832 lazy_bind_size 432 export_off 33264 export_size 120 Load command 5 cmd LC_SYMTAB cmdsize 24 symoff 33400 nsyms 44 stroff 34312 strsize 512 Load command 6 cmd LC_DYSYMTAB cmdsize 80 ilocalsym 0 nlocalsym 11 iextdefsym 11 nextdefsym 6 iundefsym 17 nundefsym 27 tocoff 0 ntoc 0 modtaboff 0 nmodtab 0 extrefsymoff 0 nextrefsyms 0 indirectsymoff 34104 nindirectsyms 51 extreloff 0 nextrel 0 locreloff 0 nlocrel 0 Load command 7 cmd LC_LOAD_DYLINKER cmdsize 32 name /usr/lib/dyld (offset 12) Load command 8 cmd LC_UUID cmdsize 24 uuid 07341F7A-383E-38A5-9235-3C0E2518ADEC Load command 9 cmd LC_VERSION_MIN_MACOSX cmdsize 16 version 10.7 sdk 14.0 Load command 10 cmd LC_MAIN cmdsize 24 entryoff 14352 stacksize 0 Load command 11 cmd LC_LOAD_DYLIB cmdsize 80 name @rpath/CsoundLib64.framework/Versions/7.0/CsoundLib64 (offset 24) time stamp 2 Thu Jan 1 01:00:02 1970 current version 0.0.0 compatibility version 7.0.0 Load command 12 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/lib/libSystem.B.dylib (offset 24) time stamp 2 Thu Jan 1 01:00:02 1970 current version 1336.0.0 compatibility version 1.0.0 Load command 13 cmd LC_FUNCTION_STARTS cmdsize 16 dataoff 33384 datasize 16 Load command 14 cmd LC_DATA_IN_CODE cmdsize 16 dataoff 33400 datasize 0
|
Date | 2023-11-10 17:23 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
rpath is not set. Not sure why. You can add it with install_name_tool but cmake should be doing it already (it does it for me). Prof. Victor Lazzarini
Maynooth University
Ireland
On 10 Nov 2023, at 17:01, Raoul MEGELAS <rmgls2943@gmail.com> wrote:
|
Date | 2023-11-10 21:04 |
From | Raoul MEGELAS |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
Hello Victor, Thank you for this. I used install_name_tool for each executable and all work. But I did not found why make does not add it Even using make —log-level debug / trace. I will explore the solution of your last message.
|
Date | 2023-11-11 11:49 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
I checked and I have this in my rpath set(CMAKE_MACOSX_RPATH 1) set(CMAKE_INSTALL_RPATH "$ENV{HOME}/Library/Frameworks") I think that will fix it for you. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 10 Nov 2023, at 21:04, Raoul MEGELAS |
Date | 2023-11-11 12:05 |
From | Raoul MEGELAS |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Sound framework not found on osx14 |
Thanks Victor, Your help is always more than useful. Raoul > On 11 Nov 2023, at 12:49, Victor Lazzarini |