Need help with Xcode 3 and SDK

May 2, 2013 at 10:44pm

Need help with Xcode 3 and SDK

Hi,
Im a complete noob when it comes to this, I bought Eric Lyon’s book and it arrived today. The book says I should install Xcode3(I did, I’m still running OSX 10.5.8) and download the Max/Msp SDK and Im stuck there. When I try to run the mirror~ example I get an error that says “there is no SDK at specified SDKROOT path ‘Developer/SDKs/MacOSX10.6.sdk’”

I feel silly trying to learn how to code externals but can’t even make the IDE to work… help?

#68065
May 3, 2013 at 5:43am

You can not have 10.6u.sdk, because you are still with OSX 10.5. Have you tried just by editing the xcconfig file like bellow? (I’m not sure that it will work. I’m still with 10.4 and i don’t know the filepath for sdk in later versions).

SDKROOT = /Developer/SDKs/MacOSX10.5u.sdk
MACOSX_DEPLOYMENT_TARGET = 10.5
#244532
May 8, 2013 at 12:18pm

Sadly, dealing with the SDK environment can be challenging, and it changes often enough that such information in a book is guaranteed to go obsolete quickly. (I wrote about that likelihood in the text.) It is possible to get things working on Xcode 3, but I would strongly encourage you to upgrade to the latest version of OSX, download Xcode 4 (free), and see this thread, which will help you get up to speed on compiling for Xcode 4:

http://cycling74.com/forums/topic.php?id=46013

And please keep posting, if you run into further difficulties.

Eric

#244533
May 11, 2013 at 12:38am

From what I see in the Mac App Store Xcode 4 runs on Mountain Lion which I don’t have.
So I guess I’ll have to wait until I can afford an upgrade to read your book,.
why is xcode so complicated? I don’t have these issues developing on DevC++, oh well…

Thank you for your time anyway, I really apreciatte it.

#244534
May 11, 2013 at 9:07am

if you have an apple developer account, you can download Xcode 4.2 for Snow Leopard. You will not find it at the app store, just on the developer.apple.com at the developer downloads i think.

#244535
May 13, 2013 at 7:04pm

why is xcode so complicated?

It’s true that life was simpler back when we just had directories of C code and a Makefile. But it’s not that much worse now. There are really only two things you need to figure out with Xcode:

1) How to install it on your system. That’s trivially easy for the current OSX. It’s a bit more complicated for older systems. But if you want to develop code, it really is a good idea to keep your OS up-to-date.

2) How to work with Xcode. Again it’s really not that hard. You just need to get your code files into the current project format (always available from Cycling ’74), and then build the project.

With persistence, you will succeed. Getting started does take more effort than writing a Max patch, but I think the rewards are worth the effort.

#249177

You must be logged in to reply to this topic.