今天编译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
Linux .o a .so .la .lo的区别及libtool相关介绍:http://www.linuxdiyf.com/linux/8120.html