首页 > 代码库 > cocos2d-x andriod, Box2D.h: No such file or directory

cocos2d-x andriod, Box2D.h: No such file or directory

原文链接:http://www.cocos2d-x.org/forums/6/topics/47503?

r=47980

You need to include like this

1
#include "Box2D/Box2D.h"

Because external/Box2D/Android.mk exported path like this

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/..

And you can comment the lib you don‘t use, such as chipmunk. I think you don‘t need Box2D and chipmunk at the same time.
Right?


cocos2d-x andriod, Box2D.h: No such file or directory