Compiling on Mac OS X 10.5

Everything todo with programming goes HERE.
Post Reply
ninth
Posts: 4
Joined: Mon Feb 02, 2009 5:32 am

Compiling on Mac OS X 10.5

Post by ninth »

Hello,

I've got the bleeding-edge source here with me in Xcode (v.3) and I'm trying to compile it for the i386 Intel platform on Mac OS X 10.5.6. However, I get an error:

There is no SDK at specified SDKROOT_ppc path '/Developer/SDKs/MacOSX10.3.9.sdk'

I've found where this is specified: in the shared.xcconfig file. Only 10.3 and 10.4 are specified - can I add 10.5, or even replace 10.4, as follows?

SDKROOT_i386 = $(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk
MACOSX_DEPLOYMENT_TARGET_i385 = 10.5

Cheers,

-n
ninth
Posts: 4
Joined: Mon Feb 02, 2009 5:32 am

Post by ninth »

All right

I tried removing, and replacing, but no dice. A new error: this time, it says the 10.5 SDK under 'normal' doesn't allow a version as high as 10.5.6.

-n
ninth
Posts: 4
Joined: Mon Feb 02, 2009 5:32 am

Post by ninth »

Typo in code - last line reads ..._i385, but I used i386.
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

When you install Xcode and the development tools, you have to manually select that you want to install the 10.3.9 SDK.

Also, I have hardcoded in the DEVELOPER_SDK_DIR, so if you did not install the developers tools to /Developer then it will be an issue. I will change this to not be hardcoded in, and to use the DEVELOPER_SDK_DIR variable.
ninth
Posts: 4
Joined: Mon Feb 02, 2009 5:32 am

Post by ninth »

Ah, okay.

Why is the PPC SDK necessary at all for an Intel build? It seems to be, from the .xcconfig file, necessary for Xcode, not Armagetron.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

For building an universal binary, I presume.
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

It is technically not required, but the way our build process is setup makes it required. We use a simple setup with one xcconfig file with common setting. To work the way you want, we would need:
  • A base xcconfig file with basic settings
  • A xcconfig file for Debug and Testing builds, using the current arch and SDK. This file would #include the base file
  • A xcconfig file for Release builds, using the 10.3.9 and 10.4 SDKs, and the i386 and ppc archs. This file would also #include the base file.
Perhaps I'll move to this setup, but for now I like having one file. The 10.3.9 SDK is still shipped with the developer tools, you just need to check the option to install it.
Post Reply