I'm new to ChipmunkPro and this is the steps that I have done:
1. Created a ne Cocos2d project with Chipmunk
2. deleted the Chipmunk directory in the project
3. I use the iphonestatic.command to build the library ( against the 5.1 SDK), I get success on some of the builds but I also get these errors
The armv6 compiler (iPhone 3G and lower) in Clang 3.1 appears to have terrible bugs in it. The C compiler outputs assembly code with instructions that don't exist. Disable armv6 compilation in the Xcode target settings if you want to use Clang 3.1.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
By looking at the output directories, if I wanted to use objective-chipmunk I would only need to import that directory into the project as it seems that it includes everything I need. Correct?
If you want to include the source? It's a little more complicated. You'd need both the Chipmunk src/ and include/ directories as well as the Objective-Chipmunk/ directory from Chipmunk Pro (I'd assume you want the fast vectorized solver too in HastySpace/).
Really, I'd just recommend grabbing the ChipmunkPro-iPhone/ directory built by the iphonestatic.command script. That has everything you need. Once it's linked, the size of the lib is not very big. I haven't actually checked in a while, but I think it's like 100-200 KB.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Undefined symbols for architecture i386:
"_CGImageSourceCreateWithURL", referenced from:
+[ChipmunkImageSampler loadImage:] in libChipmunkPro-iPhone.a(ChipmunkImageSampler.o)
"_CGImageSourceCreateImageAtIndex", referenced from:
+[ChipmunkImageSampler loadImage:] in libChipmunkPro-iPhone.a(ChipmunkImageSampler.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture armv7:
"_CGImageSourceCreateImageAtIndex", referenced from:
+[ChipmunkImageSampler loadImage:] in libChipmunkPro-iPhone.a(ChipmunkImageSampler.o)
"_CGImageSourceCreateWithURL", referenced from:
+[ChipmunkImageSampler loadImage:] in libChipmunkPro-iPhone.a(ChipmunkImageSampler.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)