Re: Universal build of cranky open source lib with a configure script
Re: Universal build of cranky open source lib with a configure script
- Subject: Re: Universal build of cranky open source lib with a configure script
- From: "Peter O'Gorman" <email@hidden>
- Date: Thu, 25 Jan 2007 08:33:08 +0900
On Jan 25, 2007, at 5:01 AM, Shamyl Zakariya wrote:
I'm trying to build a ppc lib from my intel mac, so I can lipo it
together with the intel lib. I've read a few docs off ADC which
gave me the general idea to build it twice, once native, the other
for ppc. The instructions given may work in some places, but they
don't seem to be working for me to build a universal library of ODE
( Open Dynamics Engine )
I've tried the approach from Technote 2137, where I set the CFLAGS
and LDFLAGS to result in a universal build, but that doesn't work
-- the compile fails arguing that the cpu types don't add up right.
I've also tried setting up the configure script to crosscompile:
./configure --build=ppc-apple-darwin8.8.2 --enable-release --with-
trimesh=gimpact --prefix=/Users/zakariya/Projects/ODE/buildppc/
This one builds, but when I examine the output library, it's i386,
not PPC. I've tried a number of variations of the parameters, but
no matter what, I get intel binary output.
In the end, I might just try to build this on a PPC, and lipo that
output with the local build, but getting ODE to build on OS X
required some mojo with the X11 headers which I...
embarrassingly... can't recall how I did :p
So local cross compiling is appealing, obviously. Any ideas?
Don't set --host or --build etc.
./configure .... CFLAGS='-Os -arch ppc -arch i386 -isysroot /
Developer/SDks/MacOSX10.4u.sdk' CXXFLAGS='-Os -arch ppc -arch i386 -
isysroot /Developer/SDks/MacOSX10.4u.sdk' LDFLAGS='-arch ppc -arch
i386 -isysroot /Developer/SDks/MacOSX10.4u.sdk'; make
should just work. If not, please send me the relevant chunk of build
log.
Peter
_______________________________________________
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