全志在编译时出现的error: Libtool library used but 'LIBTOOL' is undefined解决方案



最近刚得到的offer,开始调试全志的芯片,R16系列;之前在公司用Ubuntu14.04编译好好的,把电脑带回家就无法完成编译,查看log显示如下:

Makefile.am:6: error: Libtool library used but 'LIBTOOL' is undefined

Makefile.am:6:   The usual way to define 'LIBTOOL' is to add 'LT_INI

Makefile.am:6:   to 'configure.ac' and run 'aclocal' and 'autoconf' a
Makefile.am:6:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:6:   its definition is in aclocal's search path.
make[4]: *** [Makefile.in] Error 1

在网上找了很多资料,最后说是时间戳造成的,具体原因我也不是很动懂,一般解决办法,如果在、/usr/share/locals是否安装,如果没有先安装:

sudo apt-get install libtool;

安装好后,或者本来就已经安装了,则看如下操作

打印上述语句上面有一句:

cd . && /bin/bash /home/boya/works/r16_tinav2.0/out/astar-parrot/compile_dir/target/json-c-0.12/missing automake-1.14 --gnu

就是编译器根据Makefile进入这个文件夹来执行编译,但就在里面出了问题,所以你就进入这个文件夹下去重新运行下:例如我的是在r16_tinav2.0/out/astar-parrot/compile_dir/target/json-c-0.12/

aclocal

autoheader;

希望能帮到你们,我弄了好久!Good luck!!

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值