致命错误:Box2D.h:没有这样的文件或目录(fatal error: Box2D.h: No such file or directory)
我使用cocos2d-x 2.2.3和box2d在xcode中开发了一款游戏。 现在我想从ios移植到android。 但是,通过终端构建时,我收到以下错误。
In file included from jni/../../Classes/LevelScene.cpp:1:0: jni/../../Classes/LevelScene.h:6:19: fatal error: Box2D.h: No such file or directory compilation terminated. make: *** [obj/local/armeabi/objs/cocos2dcpp_shared/__/__/Classes/LevelScene.o] Error 1请指教。
I have developed a game in xcode using cocos2d-x 2.2.3 and box2d. Now i am trying to port from ios to android. However i am getting the following error while build through terminal.
In file included from jni/../../Classes/LevelScene.cpp:1:0: jni/../../Classes/LevelScene.h:6:19: fatal error: Box2D.h: No such file or directory compilation terminated. make: *** [obj/local/armeabi/objs/cocos2dcpp_shared/__/__/Classes/LevelScene.o] Error 1Please advice.
最满意答案
我只是复制了box2d文件夹中的文件并放在classes文件夹中。 有效。
I just copied the files which is in box2d folder and placed in classes folder. It worked.
更多推荐
发布评论