• 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: Linking universal binary framework with UNIX library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking universal binary framework with UNIX library


  • Subject: Re: Linking universal binary framework with UNIX library
  • From: David Young <email@hidden>
  • Date: Sun, 20 Nov 2005 09:52:11 -0800

On Nov 20, 2005, at 7:36 AM, Andrew Zamler-Carhart wrote:
Would it be possible to compile libjpeg.a on an Intel computer (Developer Transition Kit or Linux PC?) and then incorporate both a PowerPC and an Intel version of the library into the project for the framework? Perhaps I could build with two targets and then join them on the command line?

You can do either one, except for the Linux thing. I would compile them both at the same time. In the Makefile, find the compiler flags (usually the CFLAGS variable), and add "-arch ppc -arch i386". If you want to compile them individually and assemble them, you would run the make twice, using each of the -arch flags for each pass, then use "lipo" on the command line to glue them together (man lipo for details). There's no advantage to this (that I know of).


You can also do this from a PowerPC machine as well, no Intel box needed.

--dave
_______________________________________________
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: Linking universal binary framework with UNIX library
      • From: Andrew Zamler-Carhart <email@hidden>
References: 
 >Linking universal binary framework with UNIX library (From: Andrew Zamler-Carhart <email@hidden>)

  • Prev by Date: Re: Intel architecture setting ignored?
  • Next by Date: Re: Linking universal binary framework with UNIX library
  • Previous by thread: Linking universal binary framework with UNIX library
  • Next by thread: Re: Linking universal binary framework with UNIX library
  • Index(es):
    • Date
    • Thread