编译Coco2d-x android 程序出现make: *** No rule to make target ...CCConfiguration.o'. Stop.
2013-08-13 17:01
603 查看
在eclipse中编译cocos2d-x的项目可能出现这个问题。也许是你对项目没有clean,然后就让他编译造成的。
具体错误可能显示为:
make: *** No rule to make target `/cygdrive/d/android/cocos2d-x-master/T12/proj.android/../../cocos2dx/CCConfiguration.cpp', needed by `obj/local/armeabi/objs/cocos2dx_static/CCConfiguration.o'. Stop.
从这个问题可以看出,可能跟CCConfiguration.o有关,那么找到这个文件,怎么找呢?
直接在cocos2d-x根目录搜索吧。(我安装在D:\AndroidDev\cocos2d-2.0-x-2.0.4)
好,找到了,发现在
D:\AndroidDev\cocos2d-2.0-x-2.0.4\cocos2d-2.0-x-2.0.4\Cocos2dxSimpleGame\proj.android\obj\local\armeabi
目录下有个objs-debug/cocos2dx_static文件夹。
进去正好有个CCConfiguration.o文件。从后缀名来看,这个肯定是编译中间文件(可以删除)。
而Make 的No rule to make target则一般说明是已经存在了,不用再编译。
所以我们把objs-debug文件夹下面的文件(包括文件夹)全删除。
再次在eclipse里面clean一下,就发现可以编译了。
具体错误可能显示为:
make: *** No rule to make target `/cygdrive/d/android/cocos2d-x-master/T12/proj.android/../../cocos2dx/CCConfiguration.cpp', needed by `obj/local/armeabi/objs/cocos2dx_static/CCConfiguration.o'. Stop.
从这个问题可以看出,可能跟CCConfiguration.o有关,那么找到这个文件,怎么找呢?
直接在cocos2d-x根目录搜索吧。(我安装在D:\AndroidDev\cocos2d-2.0-x-2.0.4)
好,找到了,发现在
D:\AndroidDev\cocos2d-2.0-x-2.0.4\cocos2d-2.0-x-2.0.4\Cocos2dxSimpleGame\proj.android\obj\local\armeabi
目录下有个objs-debug/cocos2dx_static文件夹。
进去正好有个CCConfiguration.o文件。从后缀名来看,这个肯定是编译中间文件(可以删除)。
而Make 的No rule to make target则一般说明是已经存在了,不用再编译。
所以我们把objs-debug文件夹下面的文件(包括文件夹)全删除。
再次在eclipse里面clean一下,就发现可以编译了。
相关文章推荐
- 编译Coco2d-x android 程序出现make: *** No rule to make target ...CCConfiguration.o'. Stop
- 编译Coco2d-x android 程序出现make: *** No rule to make target ...CCConfiguration.o'. Stop.
- 编译Coco2d-x android 程序出现make: *** No rule to make target ...CCConfiguration.o'. Stop.
- Cocos2d-x:编译Coco2d-x android 程序出现make: *** No rule to make target ...CC*.o'. Stop.
- cocos2d-x3.0 编译android出现的问题笔记 cocos2dx3.0 Android.mk No rule to make target
- 出现make: *** No rule to make target `all'. Stop.解决办法
- cygwin编译cocos项目报错:make: *** No rule to make target 。。xxx.o'. stop 解决
- No rule to make target cocos2d/cocos/editor-support/cocostudio/CCActionFrame.cpp
- 打包Android编译出错make: *** No rule to make target 解决办法
- centos7.3下安装nginx出现make: *** No rule to make target `build', needed by `default'. Stop.
- Qt 程序构建执行过程中出错:make: *** No rule to make target ` ‘, needed by xxx. Stop.
- 编译内核是出现No rule to make target `firmware/sd8686_helper.bin', 错误的解决
- No rule to make target 'usr/lib/x86_64-linux-gnu/libcuda.so' Linux下安装OpenCV时 make编译出现的Bug
- 编译openssl报错 No rule to make target `../include/openssl/bio.h', needed by `cryptlib.o'. Stop
- Openwrt编译python3时出现错误:No rule to make target `package//host/compile'
- 编译Linux内核时的错误 ——make ***No rule to make target 'uimage' .stop
- Android编译错误:No rule to make target '/Android.mk'
- Ubuntu上编译OpenCV出现No rule to make target '/usr/lib/libpng.so' 错误
- eclipse c/c++IDE 编译 make: *** No rule to make target `all'. Stop. 解决办法
- 新安装CCS 后编译出现问题:gmake:No rule to make target clean