1、编译openwrt ubuntu libtool_args+=: not found 解决办法
今天编译opencv2.0的时候,make 后遇到如下情况:
libtool eval: 1: libtool_args+=: not found
libtool eval: 1: libtool_args+=: not found
libtool eval: 1: compile_command+=: not found
libtool eval: 1: finalize_command+=: not found
libtool eval: 1: libtool_args+=: not found
libtool eval: 1: compile_command+=: not found
libtool eval: 1: finalize_command+=: not found
libtool eval: 1: libtool_args+=: not found
libtool eval: 1: compile_command+=: not found
。。。
多方查证,发现是bin/sh->dash,ubuntu sh默认的是连接到dash,
解决方法两种:
(1)、bin/sh->bin/bash(sudo rm /bin/sh; cd /bin; ln -s bash sh)
(2)、文件里SHELL修改为bin/bash
另外,还有了一些其它错误,莫名其妙的错误,比如明明是按照文档来的,也没改过源码,编译时提示无法链接到某个库,可以把/bin/sh链接到/bin/bash,然后要make clean,再make。
undefined reference to 'main'错误
编译到RT288x_SDK/source/user/iptables-1.4.10出错:
libtool: link: /opt/buildroot-gcc342/bin/mipsel-linux-uclibc-gcc libiptc/.libs/libip4tc.so extensions/libext4.a ./.libs/libxtables.so -lm
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/lib/crt1.o: In function `__start':crt1.S:(.text+0x1c): undefined reference to `main'
照上解决
uncomp.c:(.text+0x58): undefined reference to `inflateReset'
unsquashfs: LDLIBS += -lunlzma後面加上–lz可解決
在编译 squashfs4.2时候编译出现以下错误:
gzip_wrapper.c:23:18: fatal error: zlib.h: No such file or directory compilation terminated.
make: *** [gzip_wrapper.o] Error 1
出现此错误需要安装一个软件:
sudo apt-get install zlib1g-dev
如果编译仍然出现 fatal error: lzma.h: No such file or directory错误,
需要安装一下“:
liblzma-dev
可以从 sudo apt-cache search "liblzma"
找到软件包后
sudo apt-get install liblzma-dev
安装完成后就可以编译通过
No usable m4 in $PATH or /usr/5bin
解决:
apt-get install m4
mtk的SDK,make menuconfig后,需要先make dep,然后再make
http://blog.csdn.net/cbffyx/article/details/8490574