Android NDK/JNI:“没有规则可以创建目标”编译我的混合 iOS/Android 项目时出错
我正在尝试在完成“make clean”(执行 makefile 的内容)后编译我的 iOS/Android 混合项目(使用 build_native.sh)。
我实际上遵循了本教程中描述的步骤: http://gameit.ro/2012/01/creating-an-iphone-and-android-cocos2d-x-hybrid-project-updated/#comment-635
但我明白了尝试编译时出现以下错误:
**没有规则来制作目标jni/../../libs/cocos2dx/platform/CCFileUtils.cpp',需要通过 obj/local/armeabi/objs-debug/cocos2d/platform/CCFileUtils.o'。停止。*
有人知道如何解决这个问题吗?
谢谢 !
I am trying to compile my iOS/Android hybrid project (using build_native.sh) after having done a "make clean" (executing the content of a makefile).
I actually followed the steps described in this tutorial: http://gameit.ro/2012/01/creating-an-iphone-and-android-cocos2d-x-hybrid-project-updated/#comment-635
But I get the following error when trying to compile:
** No rule to make target jni/../../libs/cocos2dx/platform/CCFileUtils.cpp', needed by
obj/local/armeabi/objs-debug/cocos2d/platform/CCFileUtils.o'. Stop.*
Anybody knows how to dolve this issue?
Thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到答案了!我没有正确复制“Platform”文件夹,因此 CCFileUtils 丢失。
Found the answer! I didn't copy properly the "Platform" folder and consequently, CCFileUtils was missing.
Android.mk文件如下:
Android.mk file is as follows: