Building externals with Xcode 4

Mar 8, 2011 at 8:53pm

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.

Mar 9, 2011 at 2:47pm

Think Xcode 4 is under NDA right now… Could be mistaken.

Mar 14, 2011 at 10:17am

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



I also changed the lines:

// Per architecture and deployment settings
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk




// Per architecture and deployment settings
SDKROOT = /Developer/SDKs/MacOSX10.6.sdk



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.

Mar 21, 2011 at 12:39am

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.

Mar 22, 2011 at 4:04pm

Whoops, yeah, guess I’d been to busy with other things to notice Xcode 4 hit the shelves. Sorry to be “that guy”.


You must be logged in to reply to this topic.