Building externals with Xcode 4
In anticipation of the official release of Xcode 4, I would like to start a thread about building externals with it.
In my opinion, it was a little unclear what to do in Xcode 3.2. I hope that this thread can be a central location for information abotu using Xcode 4 to build externals.
That said, I got nothing. I can build the provided externals with xcode 3.2 and i can fiddle a little without breaking it, but not much else.
Think Xcode 4 is under NDA right now... Could be mistaken.
To get the xcode projects in the examples folder of the SDK to build under Xcode 4, I removed these two lines from the maxmspsdk.xconfig file relating to the GCC compiler (which is not used by Xcode 4):
GCC_PREFIX_HEADER = $(C74SUPPORT)/max-includes/macho-prefix.pch
and
GCC_VERSION = 4.0
I also changed the lines:
// Per architecture and deployment settings
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk
and
MACOSX_DEPLOYMENT_TARGET = 10.4
to
// Per architecture and deployment settings
SDKROOT = /Developer/SDKs/MacOSX10.6.sdk
and
MACOSX_DEPLOYMENT_TARGET = 10.6
Admittedly I'm a beginner at max external programming so there may be some issue here, but this allowed the externals to be built and they seemed to work in Max.
I somehow missed these responses, but thank you David, I will check that out. One issue i remember really bothering me was an inability to change the name of the external. I just couldn't do it correctly.
cap, I posted just after it was released, so no more NDA.
Whoops, yeah, guess I'd been to busy with other things to notice Xcode 4 hit the shelves. Sorry to be "that guy".