编译Coco2d-x android 程序出现make: *** No rule to make target ...CCConfiguration.o'. Stop.
2013-04-02 11:31
561 查看
在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一下,就发现可以编译了。
相关文章推荐
- Cocos2d-x:编译Coco2d-x android 程序出现make: *** No rule to make target ...CC*.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
- 编译Coco2d-x android 程序出现make: *** No rule to make target ...CCConfiguration.o'. Stop.
- No rule to make target 'usr/lib/x86_64-linux-gnu/libcuda.so' Linux下安装OpenCV时 make编译出现的Bug
- Openwrt编译python3时出现错误:No rule to make target `package//host/compile'
- 编译内核是出现No rule to make target `firmware/sd8686_helper.bin', 错误的解决
- eclipse c/c++IDE 编译 make: *** No rule to make target `all'. Stop. 解决办法
- 出现make: *** No rule to make target `all'. Stop.解决办法
- cygwin编译cocos项目报错:make: *** No rule to make target 。。xxx.o'. stop 解决
- 编译Linux内核时的错误 ——make ***No rule to make target 'uimage' .stop
- [新手编译内核]kernel进行编译时提示No rule to make target `menconfig'.
- make: *** No rule to make target `all'. Stop.的问题 解决办法!
- cocos2d-x3.0 编译android出现的问题笔记 cocos2dx3.0 Android.mk No rule to make target
- linux内核编译中的各种问题:No rule to make target `menuconfig'&&Unable to find the Ncurses libraries
- android5.0编译问题:No rule to make target 'external/chromium_org/third_party/angle/.git/index',
- Nios II编译出错:make: *** No rule to make target `e:/nios ', needed by `/cygdrive/e/nios/Debug/system_de
- make: *** No rule to make target `clean'(archive). Stop.
- android5.0编译问题:No rule to make target 'external/chromium_org/third_party/angle/.git/index',
- Makefile常见错误解析 - make: *** No rule to make target 'test1.o', needed by 'test2'. Stop