Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just want to run any Box2D "Hello World" or test apps. I've downloaded the source twice (zip file the first time and via svn the second time), followed the build instructions (do stuff w/ cmake, "make", "make install" etc) and don't know where to go from there. How do I run the test apps or Hello World apps that come w/ Box2D on my iPhone (or simulator)?

share|improve this question
up vote 3 down vote accepted

It may not be exactly what you want, but it's worth mentioning that Cocos2D works very well with Box2D, and has an example that comes with it.

share|improve this answer… – Zaky German Apr 16 '11 at 23:39

Ok finally got something to work (this was helpful:

Anyways here's what I did:

  1. get Box2D source like this: "svn checkout"
  2. In the Terminal navigate to "Contributions/Platforms/iPhone"
  3. In the Terminal do "cmake -G Xcode"
  4. Double click on "iPhoneTestbed.xcodeproj" in the Finder

Now this Xcode project actually builds and will run in the simulator. There's some cool demos of Box2D physics. Hope this is helpful :-)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.