Csound Csound-dev Csound-tekno Search About

[Csnd] Linking against CsoundAPI

Date2012-10-12 13:47
FromAlex Hofmann
Subject[Csnd] Linking against CsoundAPI
Hi,

I've updated my Csound to 5.18 (from 5.12) and now have problems to use 
the API in C++ ("CppSound.hpp"
with "csPerfThread.hpp"). Before I linked with "-l_csnd" against Csound, 
but now this results in "Library not found".
I also checked "-lcsnd" and "-lcsound32".

I always used this in Xcode and it worked before:
Changes to do, if you start with a blank OF-Xcode-Project:
     1. add existing Framework "CsoundLib.framework"
     2. go into compiler settings
     3. add under Linking->Symbol Ordering Flags: -l_csnd
     4. Done.

Is there anything new to do?

Regards,
Alex

Date2012-10-12 14:25
FromSteven Yi
SubjectRe: [Csnd] Linking against CsoundAPI
Hi Alex,

That seems fine; maybe you need to add -I/usr/local/lib to your
library search path?

steven

On Fri, Oct 12, 2012 at 1:47 PM, Alex Hofmann  wrote:
> Hi,
>
> I've updated my Csound to 5.18 (from 5.12) and now have problems to use the
> API in C++ ("CppSound.hpp"
> with "csPerfThread.hpp"). Before I linked with "-l_csnd" against Csound, but
> now this results in "Library not found".
> I also checked "-lcsnd" and "-lcsound32".
>
> I always used this in Xcode and it worked before:
> Changes to do, if you start with a blank OF-Xcode-Project:
>     1. add existing Framework "CsoundLib.framework"
>     2. go into compiler settings
>     3. add under Linking->Symbol Ordering Flags: -l_csnd
>     4. Done.
>
> Is there anything new to do?
>
> Regards,
> Alex
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Date2012-10-12 14:37
FromAlex Hofmann
SubjectRe: [Csnd] Linking against CsoundAPI
Hi Steven,

unfortunately I'm still getting this result:

ld: library not found for -l_cnd
collect2: ld returned 1 exit status
Command /Developer/usr/bin/g++-4.2 failed with exit code 1

Alex

Am 12.10.12 15:25, schrieb Steven Yi:
> Hi Alex,
>
> That seems fine; maybe you need to add -I/usr/local/lib to your
> library search path?
>
> steven
>
> On Fri, Oct 12, 2012 at 1:47 PM, Alex Hofmann  wrote:
>> Hi,
>>
>> I've updated my Csound to 5.18 (from 5.12) and now have problems to use the
>> API in C++ ("CppSound.hpp"
>> with "csPerfThread.hpp"). Before I linked with "-l_csnd" against Csound, but
>> now this results in "Library not found".
>> I also checked "-lcsnd" and "-lcsound32".
>>
>> I always used this in Xcode and it worked before:
>> Changes to do, if you start with a blank OF-Xcode-Project:
>>      1. add existing Framework "CsoundLib.framework"
>>      2. go into compiler settings
>>      3. add under Linking->Symbol Ordering Flags: -l_csnd
>>      4. Done.
>>
>> Is there anything new to do?
>>
>> Regards,
>> Alex
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Date2012-10-12 14:53
FromSteven Yi
SubjectRe: [Csnd] Linking against CsoundAPI
Ah, just checked XCode, I think for the "Library Search Paths" you
don't need the -I, you can just use the + button and add
"/usr/local/lib".  Could you try that and let me know what happens?

On Fri, Oct 12, 2012 at 2:37 PM, Alex Hofmann  wrote:
> Hi Steven,
>
> unfortunately I'm still getting this result:
>
> ld: library not found for -l_cnd
> collect2: ld returned 1 exit status
> Command /Developer/usr/bin/g++-4.2 failed with exit code 1
>
> Alex
>
> Am 12.10.12 15:25, schrieb Steven Yi:
>
>> Hi Alex,
>>
>> That seems fine; maybe you need to add -I/usr/local/lib to your
>> library search path?
>>
>> steven
>>
>> On Fri, Oct 12, 2012 at 1:47 PM, Alex Hofmann  wrote:
>>>
>>> Hi,
>>>
>>> I've updated my Csound to 5.18 (from 5.12) and now have problems to use
>>> the
>>> API in C++ ("CppSound.hpp"
>>> with "csPerfThread.hpp"). Before I linked with "-l_csnd" against Csound,
>>> but
>>> now this results in "Library not found".
>>> I also checked "-lcsnd" and "-lcsound32".
>>>
>>> I always used this in Xcode and it worked before:
>>> Changes to do, if you start with a blank OF-Xcode-Project:
>>>      1. add existing Framework "CsoundLib.framework"
>>>      2. go into compiler settings
>>>      3. add under Linking->Symbol Ordering Flags: -l_csnd
>>>      4. Done.
>>>
>>> Is there anything new to do?
>>>
>>> Regards,
>>> Alex
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Date2012-10-12 16:22
FromAlex Hofmann
SubjectRe: [Csnd] Linking against CsoundAPI
Hi Steven,
the error is still the same.. :-(

Is "-l_csnd" still actual?

A.

Am 12.10.12 15:53, schrieb Steven Yi:
> Ah, just checked XCode, I think for the "Library Search Paths" you
> don't need the -I, you can just use the + button and add
> "/usr/local/lib".  Could you try that and let me know what happens?
>
> On Fri, Oct 12, 2012 at 2:37 PM, Alex Hofmann  wrote:
>> Hi Steven,
>>
>> unfortunately I'm still getting this result:
>>
>> ld: library not found for -l_cnd
>> collect2: ld returned 1 exit status
>> Command /Developer/usr/bin/g++-4.2 failed with exit code 1
>>
>> Alex
>>
>> Am 12.10.12 15:25, schrieb Steven Yi:
>>
>>> Hi Alex,
>>>
>>> That seems fine; maybe you need to add -I/usr/local/lib to your
>>> library search path?
>>>
>>> steven
>>>
>>> On Fri, Oct 12, 2012 at 1:47 PM, Alex Hofmann  wrote:
>>>> Hi,
>>>>
>>>> I've updated my Csound to 5.18 (from 5.12) and now have problems to use
>>>> the
>>>> API in C++ ("CppSound.hpp"
>>>> with "csPerfThread.hpp"). Before I linked with "-l_csnd" against Csound,
>>>> but
>>>> now this results in "Library not found".
>>>> I also checked "-lcsnd" and "-lcsound32".
>>>>
>>>> I always used this in Xcode and it worked before:
>>>> Changes to do, if you start with a blank OF-Xcode-Project:
>>>>       1. add existing Framework "CsoundLib.framework"
>>>>       2. go into compiler settings
>>>>       3. add under Linking->Symbol Ordering Flags: -l_csnd
>>>>       4. Done.
>>>>
>>>> Is there anything new to do?
>>>>
>>>> Regards,
>>>> Alex
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>               https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Date2012-10-12 17:16
FromSteven Yi
SubjectRe: [Csnd] Linking against CsoundAPI
It should be, as that would link to /usr/local/lib/lib_csnd.dylib.
Another option to try is adding the library directly to the project
files (right click the project and use "add files to xxx" to add the
lib to the project).

On Fri, Oct 12, 2012 at 4:22 PM, Alex Hofmann  wrote:
> Hi Steven,
> the error is still the same.. :-(
>
> Is "-l_csnd" still actual?
>
> A.
>
> Am 12.10.12 15:53, schrieb Steven Yi:
>
>> Ah, just checked XCode, I think for the "Library Search Paths" you
>> don't need the -I, you can just use the + button and add
>> "/usr/local/lib".  Could you try that and let me know what happens?
>>
>> On Fri, Oct 12, 2012 at 2:37 PM, Alex Hofmann  wrote:
>>>
>>> Hi Steven,
>>>
>>> unfortunately I'm still getting this result:
>>>
>>> ld: library not found for -l_cnd
>>> collect2: ld returned 1 exit status
>>> Command /Developer/usr/bin/g++-4.2 failed with exit code 1
>>>
>>> Alex
>>>
>>> Am 12.10.12 15:25, schrieb Steven Yi:
>>>
>>>> Hi Alex,
>>>>
>>>> That seems fine; maybe you need to add -I/usr/local/lib to your
>>>> library search path?
>>>>
>>>> steven
>>>>
>>>> On Fri, Oct 12, 2012 at 1:47 PM, Alex Hofmann  wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I've updated my Csound to 5.18 (from 5.12) and now have problems to use
>>>>> the
>>>>> API in C++ ("CppSound.hpp"
>>>>> with "csPerfThread.hpp"). Before I linked with "-l_csnd" against
>>>>> Csound,
>>>>> but
>>>>> now this results in "Library not found".
>>>>> I also checked "-lcsnd" and "-lcsound32".
>>>>>
>>>>> I always used this in Xcode and it worked before:
>>>>> Changes to do, if you start with a blank OF-Xcode-Project:
>>>>>       1. add existing Framework "CsoundLib.framework"
>>>>>       2. go into compiler settings
>>>>>       3. add under Linking->Symbol Ordering Flags: -l_csnd
>>>>>       4. Done.
>>>>>
>>>>> Is there anything new to do?
>>>>>
>>>>> Regards,
>>>>> Alex
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>> "unsubscribe
>>>>> csound"
>>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Date2012-10-12 17:36
FromSteven Yi
SubjectRe: [Csnd] Linking against CsoundAPI
Ah, I created a test project and got the same error.  I ended up using
"-l_csnd" for the linker flag, and used this for the Library search
path:

/Library/Frameworks/CsoundLib64.framework/Versions/Current

(or try /Library/Frameworks/CsoundLib.framework/Versions/Current for
float build)

I think the symlinks in /usr/local/lib were causing issues with linking.

On Fri, Oct 12, 2012 at 5:16 PM, Steven Yi  wrote:
> It should be, as that would link to /usr/local/lib/lib_csnd.dylib.
> Another option to try is adding the library directly to the project
> files (right click the project and use "add files to xxx" to add the
> lib to the project).
>
> On Fri, Oct 12, 2012 at 4:22 PM, Alex Hofmann  wrote:
>> Hi Steven,
>> the error is still the same.. :-(
>>
>> Is "-l_csnd" still actual?
>>
>> A.
>>
>> Am 12.10.12 15:53, schrieb Steven Yi:
>>
>>> Ah, just checked XCode, I think for the "Library Search Paths" you
>>> don't need the -I, you can just use the + button and add
>>> "/usr/local/lib".  Could you try that and let me know what happens?
>>>
>>> On Fri, Oct 12, 2012 at 2:37 PM, Alex Hofmann  wrote:
>>>>
>>>> Hi Steven,
>>>>
>>>> unfortunately I'm still getting this result:
>>>>
>>>> ld: library not found for -l_cnd
>>>> collect2: ld returned 1 exit status
>>>> Command /Developer/usr/bin/g++-4.2 failed with exit code 1
>>>>
>>>> Alex
>>>>
>>>> Am 12.10.12 15:25, schrieb Steven Yi:
>>>>
>>>>> Hi Alex,
>>>>>
>>>>> That seems fine; maybe you need to add -I/usr/local/lib to your
>>>>> library search path?
>>>>>
>>>>> steven
>>>>>
>>>>> On Fri, Oct 12, 2012 at 1:47 PM, Alex Hofmann  wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I've updated my Csound to 5.18 (from 5.12) and now have problems to use
>>>>>> the
>>>>>> API in C++ ("CppSound.hpp"
>>>>>> with "csPerfThread.hpp"). Before I linked with "-l_csnd" against
>>>>>> Csound,
>>>>>> but
>>>>>> now this results in "Library not found".
>>>>>> I also checked "-lcsnd" and "-lcsound32".
>>>>>>
>>>>>> I always used this in Xcode and it worked before:
>>>>>> Changes to do, if you start with a blank OF-Xcode-Project:
>>>>>>       1. add existing Framework "CsoundLib.framework"
>>>>>>       2. go into compiler settings
>>>>>>       3. add under Linking->Symbol Ordering Flags: -l_csnd
>>>>>>       4. Done.
>>>>>>
>>>>>> Is there anything new to do?
>>>>>>
>>>>>> Regards,
>>>>>> Alex
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>>> csound"
>>>>>
>>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>

Date2012-10-12 17:45
FromAlex Hofmann
SubjectRe: [Csnd] Linking against CsoundAPI
I found something. In 'usr/local/lib' the link says:
  lib_csnd.dylib -> 
/Library/Frameworks/CsoundLib.framework/Versions/Current/libcsnd.dylib
But the file in CsoundLib.framework is : "lib_csnd.dylib"

So the new installed link was wrong!! Maybe someone can check this with 
the installer?

Best,
Alex

Am 12.10.12 18:16, schrieb Steven Yi:
> It should be, as that would link to /usr/local/lib/lib_csnd.dylib.
> Another option to try is adding the library directly to the project
> files (right click the project and use "add files to xxx" to add the
> lib to the project).
>
> On Fri, Oct 12, 2012 at 4:22 PM, Alex Hofmann  wrote:
>> Hi Steven,
>> the error is still the same.. :-(
>>
>> Is "-l_csnd" still actual?
>>
>> A.
>>
>> Am 12.10.12 15:53, schrieb Steven Yi:
>>
>>> Ah, just checked XCode, I think for the "Library Search Paths" you
>>> don't need the -I, you can just use the + button and add
>>> "/usr/local/lib".  Could you try that and let me know what happens?
>>>
>>> On Fri, Oct 12, 2012 at 2:37 PM, Alex Hofmann  wrote:
>>>> Hi Steven,
>>>>
>>>> unfortunately I'm still getting this result:
>>>>
>>>> ld: library not found for -l_cnd
>>>> collect2: ld returned 1 exit status
>>>> Command /Developer/usr/bin/g++-4.2 failed with exit code 1
>>>>
>>>> Alex
>>>>
>>>> Am 12.10.12 15:25, schrieb Steven Yi:
>>>>
>>>>> Hi Alex,
>>>>>
>>>>> That seems fine; maybe you need to add -I/usr/local/lib to your
>>>>> library search path?
>>>>>
>>>>> steven
>>>>>
>>>>> On Fri, Oct 12, 2012 at 1:47 PM, Alex Hofmann  wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I've updated my Csound to 5.18 (from 5.12) and now have problems to use
>>>>>> the
>>>>>> API in C++ ("CppSound.hpp"
>>>>>> with "csPerfThread.hpp"). Before I linked with "-l_csnd" against
>>>>>> Csound,
>>>>>> but
>>>>>> now this results in "Library not found".
>>>>>> I also checked "-lcsnd" and "-lcsound32".
>>>>>>
>>>>>> I always used this in Xcode and it worked before:
>>>>>> Changes to do, if you start with a blank OF-Xcode-Project:
>>>>>>        1. add existing Framework "CsoundLib.framework"
>>>>>>        2. go into compiler settings
>>>>>>        3. add under Linking->Symbol Ordering Flags: -l_csnd
>>>>>>        4. Done.
>>>>>>
>>>>>> Is there anything new to do?
>>>>>>
>>>>>> Regards,
>>>>>> Alex
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>>> csound"
>>>>>
>>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>               https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Date2012-10-12 17:47
FromAlex Hofmann
SubjectRe: [Csnd] Linking against CsoundAPI
After correcting the symlink in "user/local/lib:" with
ln -fs 
/Library/Frameworks/CsoundLib.framework/Versions/5.2/lib_csnd.dylib 
lib_csnd.dylib

it's running :-)

Alex
Am 12.10.12 18:36, schrieb Steven Yi:
> Ah, I created a test project and got the same error.  I ended up using
> "-l_csnd" for the linker flag, and used this for the Library search
> path:
>
> /Library/Frameworks/CsoundLib64.framework/Versions/Current
>
> (or try /Library/Frameworks/CsoundLib.framework/Versions/Current for
> float build)
>
> I think the symlinks in /usr/local/lib were causing issues with linking.
>
> On Fri, Oct 12, 2012 at 5:16 PM, Steven Yi  wrote:
>> It should be, as that would link to /usr/local/lib/lib_csnd.dylib.
>> Another option to try is adding the library directly to the project
>> files (right click the project and use "add files to xxx" to add the
>> lib to the project).
>>
>> On Fri, Oct 12, 2012 at 4:22 PM, Alex Hofmann  wrote:
>>> Hi Steven,
>>> the error is still the same.. :-(
>>>
>>> Is "-l_csnd" still actual?
>>>
>>> A.
>>>
>>> Am 12.10.12 15:53, schrieb Steven Yi:
>>>
>>>> Ah, just checked XCode, I think for the "Library Search Paths" you
>>>> don't need the -I, you can just use the + button and add
>>>> "/usr/local/lib".  Could you try that and let me know what happens?
>>>>
>>>> On Fri, Oct 12, 2012 at 2:37 PM, Alex Hofmann  wrote:
>>>>> Hi Steven,
>>>>>
>>>>> unfortunately I'm still getting this result:
>>>>>
>>>>> ld: library not found for -l_cnd
>>>>> collect2: ld returned 1 exit status
>>>>> Command /Developer/usr/bin/g++-4.2 failed with exit code 1
>>>>>
>>>>> Alex
>>>>>
>>>>> Am 12.10.12 15:25, schrieb Steven Yi:
>>>>>
>>>>>> Hi Alex,
>>>>>>
>>>>>> That seems fine; maybe you need to add -I/usr/local/lib to your
>>>>>> library search path?
>>>>>>
>>>>>> steven
>>>>>>
>>>>>> On Fri, Oct 12, 2012 at 1:47 PM, Alex Hofmann  wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I've updated my Csound to 5.18 (from 5.12) and now have problems to use
>>>>>>> the
>>>>>>> API in C++ ("CppSound.hpp"
>>>>>>> with "csPerfThread.hpp"). Before I linked with "-l_csnd" against
>>>>>>> Csound,
>>>>>>> but
>>>>>>> now this results in "Library not found".
>>>>>>> I also checked "-lcsnd" and "-lcsound32".
>>>>>>>
>>>>>>> I always used this in Xcode and it worked before:
>>>>>>> Changes to do, if you start with a blank OF-Xcode-Project:
>>>>>>>        1. add existing Framework "CsoundLib.framework"
>>>>>>>        2. go into compiler settings
>>>>>>>        3. add under Linking->Symbol Ordering Flags: -l_csnd
>>>>>>>        4. Done.
>>>>>>>
>>>>>>> Is there anything new to do?
>>>>>>>
>>>>>>> Regards,
>>>>>>> Alex
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>
>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>>>> csound"
>>>>>>
>>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>>> csound"
>>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>               https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Date2012-10-12 17:48
FromSteven Yi
SubjectRe: [Csnd] Linking against CsoundAPI
That's good, and we're not crazy that symlinks should work with
linkers. :)  Glad we found this bug and thanks for working through
this Alex and Victor!

On Fri, Oct 12, 2012 at 5:47 PM, Alex Hofmann  wrote:
> After correcting the symlink in "user/local/lib:" with
> ln -fs /Library/Frameworks/CsoundLib.framework/Versions/5.2/lib_csnd.dylib
> lib_csnd.dylib
>
> it's running :-)
>
> Alex
> Am 12.10.12 18:36, schrieb Steven Yi:
>
>> Ah, I created a test project and got the same error.  I ended up using
>> "-l_csnd" for the linker flag, and used this for the Library search
>> path:
>>
>> /Library/Frameworks/CsoundLib64.framework/Versions/Current
>>
>> (or try /Library/Frameworks/CsoundLib.framework/Versions/Current for
>> float build)
>>
>> I think the symlinks in /usr/local/lib were causing issues with linking.
>>
>> On Fri, Oct 12, 2012 at 5:16 PM, Steven Yi  wrote:
>>>
>>> It should be, as that would link to /usr/local/lib/lib_csnd.dylib.
>>> Another option to try is adding the library directly to the project
>>> files (right click the project and use "add files to xxx" to add the
>>> lib to the project).
>>>
>>> On Fri, Oct 12, 2012 at 4:22 PM, Alex Hofmann  wrote:
>>>>
>>>> Hi Steven,
>>>> the error is still the same.. :-(
>>>>
>>>> Is "-l_csnd" still actual?
>>>>
>>>> A.
>>>>
>>>> Am 12.10.12 15:53, schrieb Steven Yi:
>>>>
>>>>> Ah, just checked XCode, I think for the "Library Search Paths" you
>>>>> don't need the -I, you can just use the + button and add
>>>>> "/usr/local/lib".  Could you try that and let me know what happens?
>>>>>
>>>>> On Fri, Oct 12, 2012 at 2:37 PM, Alex Hofmann  wrote:
>>>>>>
>>>>>> Hi Steven,
>>>>>>
>>>>>> unfortunately I'm still getting this result:
>>>>>>
>>>>>> ld: library not found for -l_cnd
>>>>>> collect2: ld returned 1 exit status
>>>>>> Command /Developer/usr/bin/g++-4.2 failed with exit code 1
>>>>>>
>>>>>> Alex
>>>>>>
>>>>>> Am 12.10.12 15:25, schrieb Steven Yi:
>>>>>>
>>>>>>> Hi Alex,
>>>>>>>
>>>>>>> That seems fine; maybe you need to add -I/usr/local/lib to your
>>>>>>> library search path?
>>>>>>>
>>>>>>> steven
>>>>>>>
>>>>>>> On Fri, Oct 12, 2012 at 1:47 PM, Alex Hofmann  wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I've updated my Csound to 5.18 (from 5.12) and now have problems to
>>>>>>>> use
>>>>>>>> the
>>>>>>>> API in C++ ("CppSound.hpp"
>>>>>>>> with "csPerfThread.hpp"). Before I linked with "-l_csnd" against
>>>>>>>> Csound,
>>>>>>>> but
>>>>>>>> now this results in "Library not found".
>>>>>>>> I also checked "-lcsnd" and "-lcsound32".
>>>>>>>>
>>>>>>>> I always used this in Xcode and it worked before:
>>>>>>>> Changes to do, if you start with a blank OF-Xcode-Project:
>>>>>>>>        1. add existing Framework "CsoundLib.framework"
>>>>>>>>        2. go into compiler settings
>>>>>>>>        3. add under Linking->Symbol Ordering Flags: -l_csnd
>>>>>>>>        4. Done.
>>>>>>>>
>>>>>>>> Is there anything new to do?
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Alex
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>
>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>> "unsubscribe
>>>>>>>> csound"
>>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>
>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>> "unsubscribe
>>>>> csound"
>>>>>
>>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>