zoukankan      html  css  js  c++  java
  • 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

    比较粗糙,先备注了,上班先

  • 相关阅读:
    vue 实现左侧分类列表,右侧文档列表
    C# string数组与list< string >的相互转换
    c# List<string>的用法
    类数组 数组
    事件
    js封装方法和浏览器内核
    dom
    try...catch es5
    data对象 定时器
    call apply 原型 原型链
  • 原文地址:https://www.cnblogs.com/javawebsoa/p/3006080.html
Copyright © 2011-2022 走看看