Re: [Q] Is the 10.4u SDK distributed for the Intel Mac and the PPC Mac different?
Re: [Q] Is the 10.4u SDK distributed for the Intel Mac and the PPC Mac different?
- Subject: Re: [Q] Is the 10.4u SDK distributed for the Intel Mac and the PPC Mac different?
- From: JongAm Park <email@hidden>
- Date: Sat, 28 Jun 2008 08:31:51 -0700
Thank you for the information.
Now I can rely on the Intel Mac's build more confidently. :)
If they are same, then there can be some possibility that the
configure set its setting differently than its build n a PPC Mac.
I'm sort of figured out why the problem happened to the project I'm
trying to build. I fixed some project setting, and there are more to
fix. I would like to share the information with people in this
mailing list.
So, probably tomorrow I hope I would finalize this and let me post
the result here.
(Hint : Someone who worked on this project didn't seem to understand
the "Project setting" and "Target setting". thus some setting in
"Target" overrode the ones in the Project setting. Also, linked
library seems to be multiply referenced. The library names are the
same, but someone worked before didn't understand Unix library/header
search path. Although the 1st path given is used, multiple
directories with the same headeries/libraries are being set and there
was even -lpq option, although he linked the library using the
Xcode's GUI under "Linked Framework." This involves some issues.
Especially to ones who just exposed to the Xcode environment, they
are kind of lost due to the identically-looking Project Setting and
Target Setting, although it was streamlined a lot compared to the
Project Builder era. Anyway, I understand people here heard much on
that.
Anyway, thank you for your information, and I will come back
soon..... hopefully. :)
Best regards,
JongAm Park
On Jun 27, 2008, at 11:17 PM, Chris Espinosa wrote:
On Jun 27, 2008, at 10:31 PM, JongAm Park wrote:
I tried compiling the postgreSQL library. As I desribed in my
previous post, on Intel Mac, there are some problems like "_fnctl
$UNIX2003 can't be found.". I tried investigating the library file
using the nm. But they are reference like _fnctl without $UNIX2003.
So, I tried compiling universal library, especially the i386 part,
on my iMac 17" PPC (Sunflower model.)
I found some interesting things.
An intel binary built on an Intel Mac is 420KB, while the same
intel binary built on a PPC Mac is 392KB.
The build command is the same on both.
export CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
arch i386 -mmacosx-version-min=10.4"
export LDFLAGS="-arch i386"
sudo ./configure --prefix=/opt/local --disable-dependency-tracking.
I couldn't provide it with -arch ppc -arch i386 at the same time.
Then erros will be thrown while compilation.
So, I tried buiding the separately and will combine them using lipo.
Is there any difference between the same 10.4u SDK? (Actually I
think I heard it before from somewhere... )
The SDK is identical between PPC and Intel machines. Without
analyzing what the 28Kb difference actually entails between the two
binaries it would be hard to say what's going on. It's more likely
that the difference is in debug symbols rather than generated code
(try comparing stripped binaries rather than unstripped).
Chris
_______________________________________________
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