Makefile执行过程中出错:make: *** No rule to make target ` ‘, needed by xxx. Stop.

来源:互联网 发布:科尔盖特大学 知乎 编辑:程序博客网 时间:2024/06/05 16:48

在一个开源软件上添加自己的代码(文件夹中,相对独立的功能),

修改Makefile.am后,编译报错:

Makefile执行过程中出错:make: *** No rule to make target ` ‘, needed by xxx. Stop.


在csdn搜到一些帖子:

http://blog.csdn.net/vblittleboy/article/details/21012991

http://blog.csdn.net/roserose0002/article/details/38397537


一个是因为不可见空格字符,一个是因为路径错误,都是Makefile书写文件

自己检查自己的Makefile.am,很久很久,才突然想起来关于tab和空格不通用的问题

把实际编译的命令行前的8个空格删除,换成了tab,立刻成功。

希望对朋友有用!

阅读全文
0 0
原创粉丝点击