• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Building libcurl with Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building libcurl with Xcode


  • Subject: Re: Building libcurl with Xcode
  • From: Jerry <email@hidden>
  • Date: Fri, 4 Apr 2008 08:51:38 +0100


On 3 Apr 2008, at 21:40, David Dunham wrote:

I want to make sure my app uses the same version of libcurl as its Windows equivalent, so I'd like to build it myself and statically link.

I'm not having much luck setting up an Xcode project. (Nor typing "make" at the command line, though I doubt that makes a universal binary -- I'd much rather do this via Xcode.)

Has anyone made an Xcode project for libcurl?

I do it by creating a Makefile which does the right stuff and using and external Xcode target. For safety with autoconf stuff, you need to build it twice, once for each architecture and then lipo the results together because of the dreaded config.h. I use these commands:


rm -f libcurl.ppc.a
rm -f libcurl.i386.a
rm -f libcurl-universal.a
make clean
./configure CFLAGS="-arch ppc" --enable-static
make
ar rv libcurl.ppc.a lib/*.o
make clean
./configure CFLAGS="-arch i386" --enable-static
make
ar rv libcurl.i386.a lib/*.o
lipo -create -arch i386 libcurl.i386.a -arch ppc libcurl.ppc.a -output libcurl-universal.a


Don't get me started on why we have to do this since Leopard changed the compatibility version of libcurl.dylib and so you can;t build anything using libcurl on Leopard and then expect it to run on Tiger....

Jerry

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Building libcurl with Xcode
      • From: David Dunham <email@hidden>
References: 
 >Building libcurl with Xcode (From: David Dunham <email@hidden>)

  • Prev by Date: ISO Designators versus Legacy Language Designators for resources in Xcode
  • Next by Date: Looking for Apple Developer in Vienna/Austria
  • Previous by thread: Re: Building libcurl with Xcode
  • Next by thread: Re: Building libcurl with Xcode
  • Index(es):
    • Date
    • Thread