致命错误:Box2D.h:没有这样的文件或目录(fatal error: Box2D.h: No such file or directory)

编程入门 行业动态 更新时间:2024-10-27 15:16:00
致命错误: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 1

Please advice.

最满意答案

我只是复制了box2d文件夹中的文件并放在classes文件夹中。 有效。

I just copied the files which is in box2d folder and placed in classes folder. It worked.

更多推荐

本文发布于:2023-07-24 17:19:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1248835.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   文件   目录   Box2D   directory

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!