[编译相关]系列3:makefile或者config文件当中的空格或者注释导致编译出错

来源:互联网 发布:淘宝卖家加入花呗条件 编辑:程序博客网 时间:2024/05/21 10:02

原来的congfig文件当中有指定路径配置的语言如下:

OBJPATH           = ../output/objs/$(CONFIG)/  #输出目标的路径

PLATFORMLIB       =/home/xxx/xxx/lib         #本地依赖的库路径

LIBDIR        = ../output/libs/$(CONFIG)/  #输出目标库的路径

 

结果在编译时发生错误说:

make[1]: *** No rule to make target `%.s', needed by `../output/objs/config_android_cortex_A8_zyf/'.  Stop.

make[1]: Leaving directory `/home/xxx/xxxx'

make: *** [build] Error 2

 

查找原因发现:

每一行当中/和“#”中间的空格导致路径名识别出错,需要全部去掉才可以编译通过。

 

 

原创粉丝点击