Page 1 of 1
Installation Issues
Posted: Fri Dec 16, 2011 11:47 am
by mijator
I've downloaded Chipmunk, did tar xvf into my Applications directory, ran it through Cmake, launched Xcode and opened it...
It only compiles for My Mac 64 or 32 bit. There are no options for compiling it for iPhone.
What have I missed?
Also, if I'm planning on using it for multiple iPhone projects, are there setup steps that must be taken each time or do I only have to do the setup once?
Thanks in advance!
Re: Installation Issues
Posted: Fri Dec 16, 2011 1:29 pm
by slembcke
You don't need to run CMake if you are using the Xcode project, and it doesn't help you with iPhone anyway. The Xcode project doesn't have an iPhone specific target. There is a script named iphonestatic.command in the macosx/ directory, run that to create a static library and a folder full of headers you can drop into your project. The readme has more info.
Re: Installation Issues
Posted: Fri Dec 16, 2011 4:35 pm
by mijator
When I run the ./iphonestatic.command inside the macosx directory it complains:
xcodebuild: error: SDK "iphoneos4.3" cannot be located.
Re: Installation Issues
Posted: Fri Dec 16, 2011 4:41 pm
by slembcke
Do you have the 4.3 SDK installed? If not, change it to whatever the latest version you have installed is. Unfortunately from command line builds it's not simple to figure out what the latest iOS SDK installed is so I just set it to whatever the latest SDK at the time is.
Re: Installation Issues
Posted: Fri Dec 16, 2011 5:07 pm
by mijator
It looks like I have 5.0 SDK. I only recently bought the computer, so it's the latest of everything.
You mention "change it to ... the latest version" ... where do I do this?
Presumably I try running the ./iphonestatic.command once I've changed it...
Thanks again.
Re: Installation Issues
Posted: Fri Dec 16, 2011 5:13 pm
by mijator
I think you meant "edit the file called iphonestatic.command in a text editor, make the change from 4.2 to 5.0" then run the command...
That seems to have worked.
** Build Succeeded **
Re: Installation Issues
Posted: Fri Dec 16, 2011 5:23 pm
by slembcke
Yes, the SDK is set in the iphonestatic.command script.