Sorry, you are correct, I just checked the cocos2d-1.0.1-x-0.10.0.zip file I downloaded and it is 2.2.1. I must have been looking at another directory tree when I noticed the difference.
I installed the new cocos2d-x version in an mac and the Box2D HelloWorld is ok.
I took this Box2D HelloWorld for iphone code in an android project, and I received Box2D errors.
Cocos2d-1.0.1-X-0.10.0 for iphone is using Box2D 2.2.1?
Hello, on my project I updated this line: world = new b2World(gravity);
and add a new line to allowSleeping: world~~>SetAllowSleeping;
Other change is to define world box, now you should define a b2EdgeShape similar to:
b2EdgeShape groundBox;
groundBox.Set/PTM_RATIO), b2Vec2/PTM_RATIO));
bottom = world~~>CreateBody(&groundBodyDef);
bottom->CreateFixture(&groundBox, 0);