Skip navigation.
 
mlRe: Compilation: error on linking libcurl PPC 7.18 on my Cocoa project
FROM : Nir Soffer
DATE : Tue Mar 04 23:35:40 2008

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

Related mailsAuthorDate
mlCompilation: error on linking libcurl PPC 7.18 on my Cocoa project Michaël Parrot Feb 29, 10:03
mlRe: Compilation: error on linking libcurl PPC 7.18 on my Cocoa project Nir Soffer Mar 4, 23:35