首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >是否使用了Libtool库,但未定义‘Libtool’?

是否使用了Libtool库,但未定义‘Libtool’?
EN

Stack Overflow用户
提问于 2013-03-29 20:45:29
回答 4查看 28.2K关注 0票数 12

我正在尝试在我的服务器上安装ffmpeg。我正在解开centos 5。

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

代码语言:javascript
复制
` 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 ` 

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

谢谢你的建议

EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2013-03-29 20:55:47

该错误告诉您没有安装libtool,或者您没有在configure.ac中检查它。在configure.ac中添加行LT_INIT。如果autoreconf抱怨它不知道LT_INIT是什么,你应该安装libtool,升级你的libtool安装,或者使用configure.ac中不推荐使用的AC_PROG_LIBTOOL。(在较新的项目中,应该用LT_INIT替换AC_PROG_LIBTOOL。)

票数 11
EN

Stack Overflow用户

发布于 2014-02-02 03:54:38

我也有同样的问题。做了以下事情

代码语言:javascript
复制
$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

希望这能有所帮助

票数 6
EN

Stack Overflow用户

发布于 2014-12-28 03:03:30

我在centos中为nginx安装geoip时遇到了同样的问题(当我试图运行make命令时),这就是我所做的。yum install libtool在configure.in AC_CONFIG_MACRO_DIR(m4)末尾的一行下面添加

在Makefile.am ACLOCAL_AMFLAGS = -I m4的末尾添加以下行

运行$ aclocal $ libtoolize

别问我为什么。但这个方法奏效了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15703522

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档