GCC编译代码时,执行./configure在代码目录下生成了libtool脚本,再执行make 出现类似以下错误
../libtool: line 832: X--tag=CC: command not found
../libtool: line 865: libtool: ignoring unknown tag : command not found
../libtool: line 832: X--mode=compile: command not found
../libtool: line 998: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 999: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1142: Xgcc: command not found
../libtool: line 1142: X-DHAVE_CONFIG_H: command not found
../libtool: line 1142: X-I.: command not found
../libtool: line 1142: X-I../include: No such file or directory
../libtool: line 1142: X-g: command not found
../libtool: line 1142: X-I/usr/local/include: No such file or directory
../libtool: line 1142: X-g: command not found
../libtool: line 1142: X-O2: command not found
../libtool: line 1142: X-MT: command not found
../libtool: line 1142: Xargs.lo: command not found
../libtool: line 1142: X-MD: command not found
../libtool: line 1142: X-MP: command not found
../libtool: line 1142: X-MF: command not found
../libtool: line 1142: X.deps/args.Tpo: No such file or directory
../libtool: line 1142: X-c: command not found
../libtool: line 1193: Xargs.lo: command not found
../libtool: line 1198: libtool: compile: cannot determine name of library object from `': command not found
原因据说是因为在项目目录下生成的libtool脚本中定义了$ECHO变量,但是在脚本文件ltmain.sh中,使用的却是$echo(生成的libtool版本太旧)
打开aclocal.m4文件,可以在很前面的一段配置中找到这么两句
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl
可通过以下方法解决:
1. 直接复制系统自带的libtool到项目目录,应该在/usr/bin目录下,覆盖代码文件目录下的libtool,再执行make
(没装就apt-get install libtool 或者 yum install libtool 安装一下吧)
2. 修改aclocal.m4文件,将上面的LIBTOOL='$(SHELL) $(top_builddir)/libtool'改成LIBTOOL='$(SHELL) /usr/bin/libtool'后重新执行./configure
3. 将源码目录下libtool脚本中所有的$ECHO替换成$echo. 或者将脚本文件ltmain.sh里的$echo替换成$ECHO,都一样,重新执行./configure
转载注明源 http://asyty.iteye.com/blog/1487299
分享到:
相关推荐
官方离线安装包,亲测可用
离线安装包,亲测可用
介绍如何在linux下编译生成libjpeg库,然后调用libjpeg库将BMP图片转成JPG图片。 tar jvxf libtool-2.2.4.tar.bz2 cd libtool-2.2.4/ ./configure CC=arm-linux-gnu-gcc --build=i686-linux --host=arm-linux --...
官方离线安装包,亲测可用
libtool,libtool-libs,libtool-libs-1.5.6-4.EL4.1.c4.4.i386
libtool-2.4.6.tar.gz 手动安装包 ①./configure ②make ③make install
离线安装包,亲测可用
官方离线安装包,亲测可用
离线安装包,亲测可用
官方离线安装包,亲测可用
官方离线安装包,亲测可用
libtool-2.4.2.tar.gz
免费下载 libtool-2.4.6.tar.gz_FreeDownload.zip 文件后,解压此文件即可得到 libtool-2.4.6.tar.gz 源文件。
这需要GNU系统工具autoconf , automake和libtool的可用性。 配置 在以下输出中查找最相关的配置选项: ./configure --help=short 然后,生成至少包含以下选项的Makefile: ./configure --with-lpel-includes=$...
libtool-2.4.6.tar.xz是crosstool-ng交叉编译时用到的源码,有需要的朋友可以直接下载。
autoconf >= 2.58 is needed by libtool-2.2.6-15.5.el6.x86_64 automake >= 1.4 is needed by libtool-2.2.6-15.5.el6.x86_64 rpm -ivh autoconf-2.63-5.1.el6.noarch.rpm rpm -ivh automake-1.11.1-4.el6....
解决【autoreconf: command not found】安装包,下载安装包后,解压,并使用make和sudo make命令去安装
车眼-FFMPEG FFmpeg用x264,libass,fontconfig,freetype和fribidi编译简单的应用程序界面支持android和Windows支持的架构ARMV7 X86 ARMV8A 64位在android中编译(Android Studio 3.0+) 设置环境变量export ...
编译libjpeg前要确保系统装了libtool库。否则编译不成功。 1、下载libjpeg源码:ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz 2、解压缩 jpegsrc.v6b.tar.gz 3、进入/jpeg-6b目录配置: ./configure --...