Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking universal binary framework with UNIX library



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Linking universal binary framework with UNIX library (From: Andrew Zamler-Carhart <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.