Re: Compilation: error on linking libcurl PPC 7.18 on my Cocoa project
Re: Compilation: error on linking libcurl PPC 7.18 on my Cocoa project
- Subject: Re: Compilation: error on linking libcurl PPC 7.18 on my Cocoa project
- From: Nir Soffer <email@hidden>
- Date: Wed, 5 Mar 2008 00:35:40 +0200
On Feb 29, 2008, at 11:03, Michaƫl Parrot wrote:
To start portage of winwin project to Mac OS X I need to use the
library libcurl 7.18 but the build faild on PPC link.
I downloaded two binaries from http://www.hmug.org/pub/MacOS_X/BSD/
Applications/Internet/curl/
since the page http://curl.haxx.se/download.html
(Unfortunately, no Universal 7.18 build for moment...).
After, I use lipo to create UB at add this new UB into my project
(file command confirm the ppc and i386 architectures).
But on link from xCode, It fail on linking the ppc target.
After basic operations (Clean All, checking Header files) I want to
compile my project in PPC only with the downloaded PPC binary...
but also not works !
I try all the day, testing the UB 7.16 version by Apple and this
great work (but I need to use the 7.18).
I downloaded the source of 7.18 and make compilation with added gcc
option -arch ppc to make (and confirm by file command) the ppc
binary but It always fail...
What omit ? Where can search ? Thanks a lot everybody.
To build universal binary, you need to configure like this:
./configure --disable-dependency-tracking \
CFLAGS="-F$(FRAMEWORK_DIR) -isysroot $(SDK) -arch ppc -arch i386" \
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -
arch i386"
FRAMEWORK_DIR is the path to the built framework - I use that for
running the tests with the private framework. Maybe you don't need this.
Then call make like this:
cd lib; make build -e -f libcurl.framework.make
This worked for 7.15.5.
For more info see http://developer.apple.com/documentation/Porting/
Conceptual/PortingUnix/compiling/chapter_4_section_3.html
You can also try to ask on the curl-library mailing list.
Best Regards,
Nir Soffer
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden