Forums > Dev

Building externals with Xcode 4

March 8, 2011 | 8:53 pm

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.


March 9, 2011 | 2:47 pm

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


March 14, 2011 | 10:17 am

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.


March 21, 2011 | 12:39 am

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.


March 22, 2011 | 4:04 pm

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


Viewing 5 posts - 1 through 5 (of 5 total)