当前位置:编程学习 > wap >>

cocos2dx和eclipse交叉编译“make: *** No rule to make target `all'. Stop”的解决方案

搞cocos2dx在eclipse上的交叉编译。

项目./build_native.sh后导入eclipse一直提示一个很恶心的报错

make: *** No rule to make target `all'. Stop.

 

网上搜了半天的英文资料,都无法解决。最后在论坛里找到了解决方案,在这里整理了下mac和windows的解决方案,给需要的童鞋:

cocos2dx  eclipse

       解决方式:右键项目-->properties-C/C++Build-->Builder settings

              此时可看到Builder Type是不可选的,

              且Makefilegeneration-->Generate makefiles automatically是未选中的

              选中Generate makefiles automatically

              此时Builder Type变成了可选项,选择internalbuilder

              然后提交

            (另:有些童鞋的选项是灰色的,用下面这个方法:)

 Mac 系统的解决方案:Select C/C++ Build on theleft side of the window that pops up. under Builder,

不要选择 “Use default build command” ,在下面的Build Command中输入下面命令:

           

bash${workspace_loc:/<YOUR-PROJECT-NAME>}/build_native.sh NDK_DEBUG=1 V=1

<YOUR-PROJECT-NAME> 就是你的项目名字

windows的解决方案:

bash"E:\\cocos2dx20\\Balance\\proj.android/build_native.sh" NDK_DEBUG=1V=1 clean

然后 ok 提交 run

 

补充:移动开发 , 其他 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,