Is there a template to create project for Box2d on cocos2dx? likes box2d-cocos2d template in Mac xcode. Thanks

if not, How to add box2d support in cocos2dx project? thank you.

Add the library (with the path to Box2D), include the headers (with the path to Box2D) and use the Box2D classes.

What’s the actual problem? :slight_smile:

If you don’t know how to add libraries and header paths, it’s recommended to learn about that first. For Android, you can look at the Android.mk file that’s included with the Tests demo for Cocos2d-x. It’s really easy!

compare the android makefiles between HelloWorld & Tests, you can easily find the answer.

Thanks great. I have solved this question just do like Walzer Wang said, by making a comparation. It’s not very ease for new starter. I am working on porting my code from apple to android to support multiplatform. I’d like to suggest make a templete like Mac to advoid repeat work, may concentrate on game logic.