2015-03-03 140 views
0

我使用cocos2d-x 2.2.3和box2d在xcode中開發了一款遊戲。現在我正嘗試從ios移植到android。但是,我通過終端構建時遇到以下錯誤。致命錯誤:Box2D.h:沒有這樣的文件或目錄

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 

請指教。

回答

0

我剛剛複製了box2d文件夾中的文件,並放在classes文件夾中。有效。

相關問題