[Csnd] CsoundLib.framework in Xcode
Date | 2012-10-22 01:15 |
From | Christopher Saunders |
Subject | [Csnd] CsoundLib.framework in Xcode |
I'm having basic trouble building an Xcode Cocoa template project when I add the Csound framework to the project. Step 1. - Make Xcode Project from Cocoa Template Step 2. - Build Project - Build Succeeded Step 3. Add CsoundLib.framework to Xcode Project in Targets -> Linked Frameworks and Libraries Step 4. - Build Project -Build Failed - ld: framework not found CsoundLib The framework is located Library/Frameworks/CsoundLib.framework What am I missing about either including frameworks in Xcode or the CsoundLib.framework? I've been going through Rory Walsh's Chapter on the Csound API in the Audio Programming book, and I can build the examples in C and C++ from the command line just fine, so my Csound libraries are installed properly (but maybe not the .frameworks?) Christopher Saunders B.A. North Carolina State University 2009 B.M. Berklee College of Music 2011 |
Date | 2012-10-22 08:27 |
From | Victor Lazzarini |
Subject | Re: [Csnd] CsoundLib.framework in Xcode |
Not sure. I've followed your steps and got a 'build succeeded' at step 4. The only difference might be that I right clicked on the Frameworks folder in the 'explorer' panel (on the left) and selected 'add files to ...' then browsed to /Library/Frameworks and selected the installed CsoundLib.framework. Victor On 22 Oct 2012, at 01:15, Christopher Saunders wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2012-10-22 15:14 |
From | Christopher Saunders |
Subject | Re: [Csnd] CsoundLib.framework in Xcode |
After a little experimentation, the project succeeds in building if I include both CsoundLib.framework and CsoundLib64.framework, even if I am building for 32-bit architecture. is this normal practice? On Oct 22, 2012, at 3:27 AM, Victor Lazzarini wrote:
Christopher Saunders B.A. North Carolina State University 2009 B.M. Berklee College of Music 2011
|
Date | 2012-10-22 15:24 |
From | Victor Lazzarini |
Subject | Re: [Csnd] CsoundLib.framework in Xcode |
No, including the two is possibly problematic because you might have duplicate symbols. I don't understand what is the problem, because I can't reproduce it here. Note that CsoundLib and CsoundLib64 are not meant as different types of arch. The difference between them is the use of doubles (64) or floats, internally. Both frameworks are FATbinaries, including i386 and x86_64 architectures: coltrane:libfluidsynth victor$ otool -f /Library/Frameworks/CsoundLib.framework/CsoundLib Fat headers fat_magic 0xcafebabe nfat_arch 2 architecture 0 cputype 7 cpusubtype 3 capabilities 0x0 offset 4096 size 2127116 align 2^12 (4096) architecture 1 cputype 16777223 cpusubtype 3 capabilities 0x0 offset 2134016 size 2201664 align 2^12 (4096) coltrane:libfluidsynth victor$ otool -f /Library/Frameworks/CsoundLib64.framework/CsoundLib64 Fat headers fat_magic 0xcafebabe nfat_arch 2 architecture 0 cputype 7 cpusubtype 3 capabilities 0x0 offset 4096 size 2402284 align 2^12 (4096) architecture 1 cputype 16777223 cpusubtype 3 capabilities 0x0 offset 2408448 size 2525372 align 2^12 (4096) ============ Victor On 22 Oct 2012, at 15:14, Christopher Saunders wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2012-10-22 16:27 |
From | Christopher Saunders |
Subject | Re: [Csnd] CsoundLib.framework in Xcode |
Aha! I have to activate the checkbox "Copy item into destination group's older(if needed)" when adding the framework to the project. Builds fine. I wasn't doing this before. Thanks for your help, Victor On Oct 22, 2012, at 10:24 AM, Victor Lazzarini wrote:
Christopher Saunders B.A. North Carolina State University 2009 B.M. Berklee College of Music 2011
|
Date | 2012-10-23 17:36 |
From | Alex Hofmann |
Subject | Re: [Csnd] CsoundLib.framework in Xcode |
I had some Linker Problems a few days before. Rory fixed it in the
sources of the installer of Csound, but you might have had your
trouble because of that? http://csound.1045644.n5.nabble.com/Linking-against-CsoundAPI-td5716725.html But looks like it's working for you now, anyway. Best, Alex Am 22.10.12 17:27, schrieb Christopher
Saunders:
|
Date | 2012-10-23 17:40 |
From | Rory Walsh |
Subject | Re: [Csnd] CsoundLib.framework in Xcode |
Actually it was Steven who updated the installer! On 23 October 2012 17:36, Alex Hofmann |
Date | 2012-10-23 17:46 |
From | Alex Hofmann |
Subject | Re: [Csnd] CsoundLib.framework in Xcode |
You're right. Sorry for that. Am 23.10.12 18:40, schrieb Rory Walsh: > Actually it was Steven who updated the installer! > > On 23 October 2012 17:36, Alex Hofmann |
Date | 2012-10-23 17:49 |
From | Rory Walsh |
Subject | Re: [Csnd] CsoundLib.framework in Xcode |
No problem! Glad everything was resolved. |