Libtool库使用但"LIBTOOL"未定义?

Sam*_*ley 9 ssh centos5 ffmpeg

我试图在我的服务器上安装ffmpeg.我没有名字5.

当我尝试安装libfdk_aac时,我收到以下错误

` autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
Makefile.am:31: Libtool library used but `LIBTOOL' is undefined
Makefile.am:31:
Makefile.am:31: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
Makefile.am:31: to `configure.ac' and run `aclocal' and `autoconf' again.
Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac'
autoreconf: automake failed with exit status: 1 ` 
Run Code Online (Sandbox Code Playgroud)

如果我输入哪个libtool我得到/ usr/bin/libtool,所以我认为安装了libtool.所以我不确定为什么会发生这种错误.

谢谢你的建议

Wil*_*ell 9

该错误并未告诉您libtool未安装,而是您没有检查它configure.ac.添加线LT_INITconfigure.ac.如果autoreconf然后抱怨它不知道是什么LT_INIT,你应该升级你的libtool安装或使用AC_PROG_LIBTOOL.(AC_PROG_LIBTOOLLT_INIT在较新的项目中替换.)

  • 答案有点帮助,但实际上并没有说要做什么."使用AC_PROG_LIBTOOL"是什么意思? (4认同)

小智 6

我遇到过同样的问题.做了以下

$brew install libtool
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtool-    2.4.2.mavericks.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring libtool-2.4.2.mavericks.bottle.2.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
  /usr/local/Cellar/libtool/2.4.2: 66 files, 2.2M
fdk-aac $ glibtoolize
fdk-aac $ autoreconf -fiv
fdk-aac $ ./configure
fdk-aac $ make
fdk-aac $ make -install
go to ffmpeg/build
ffmpeg/build$ ../configure --enable-libfdk-aac --enable-nonfree
ffmpeg/build$make
ffmpeg/build$sudo make install
do ls /usr/local/lib/*fdk* check that libfdk-aac is installed
go to my application

 myapp/build$cmake ../
 myapp/build$make
Run Code Online (Sandbox Code Playgroud)

希望这可以帮助