Hi,
I have Box2d working in XCode on the iPhone Simulator. With this target it "just works", although the test harness (mostly in Render.cpp) is not compatible with OpenGL ES 1.1 and it requires GLUT, which isn't present on that platform. I hacked the DebugDraw class enough to compile and draw polygons and circles (using glDrawArray, which means its allocating a fair bit, but it seems fast enough). I haven't tried all the test cases but CCDTest works more or less as expected. I haven't quite got DebugDraw::DrawString function working. It's very platform-specific - I'm not sure anyone wants to see Objective-C code in there - and I haven't looked at the glui library yet.
My application's rendering code is working however, and I wanted to try it on the device, but the compile fails in b2Math.h ("finite is not declared in this scope").
The main difference between compiling for the device and the simulator is that the device is ARM and the simulator is i386. I'm not sure which library I should be looking for to resolve this symbol.
Any suggestions?
I have Box2d working in XCode on the iPhone Simulator. With this target it "just works", although the test harness (mostly in Render.cpp) is not compatible with OpenGL ES 1.1 and it requires GLUT, which isn't present on that platform. I hacked the DebugDraw class enough to compile and draw polygons and circles (using glDrawArray, which means its allocating a fair bit, but it seems fast enough). I haven't tried all the test cases but CCDTest works more or less as expected. I haven't quite got DebugDraw::DrawString function working. It's very platform-specific - I'm not sure anyone wants to see Objective-C code in there - and I haven't looked at the glui library yet.
My application's rendering code is working however, and I wanted to try it on the device, but the compile fails in b2Math.h ("finite is not declared in this scope").
The main difference between compiling for the device and the simulator is that the device is ARM and the simulator is i386. I'm not sure which library I should be looking for to resolve this symbol.
Any suggestions?