libtool版本不匹配错误 [英] libtool version mismatch error

查看:284
本文介绍了libtool版本不匹配错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu 10.04上使用kdevelop 3.5构建应用程序时,出现以下错误:

When building my application with kdevelop 3.5 on Ubuntu 10.04, I get the following errors:

libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2.6a-4, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-4
libtool: and run autoconf again.
make[2]: *** [wktools4] Error 63
make[2]: Target `all' not remade because of errors.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Exited with status: 2 ***

在哪里可以获得所需的libtool版本,或者如何重新创建aclocal.m4?

Where can I get the needed version of libtool, or how can I recreate aclocal.m4?

推荐答案

尝试运行

autoreconf --force --install
./configure
make

在项目的根目录中.

如果这不起作用,请尝试先运行make maintainer-clean,然后转到步骤1.

If that doesn't work, try running make maintainer-clean first and then go to step 1.

如果仍然不起作用,请运行make maintainer-clean,然后删除项目根目录中的每个生成的文件;包括aclocal.m4,任何m4目录,任何autom4te.cache目录,configureMakefile.inconfig.hconfig.h.inconfig.statuslibtoolltmain.sh等,然后转到第1步.

If that still doesn't work, run make maintainer-clean, then delete every generated file in the root directory of your project; including aclocal.m4, any m4 directory, any autom4te.cache directory, configure, Makefile.in, config.h, config.h.in, config.status, libtool, ltmain.sh, etc. Then go to step 1.

这为何起作用: libtoolaclocal.m4都是由构建系统生成的文件.如果它们不同步(由生成工具的不同版本生成),则会出现此错误.通常不应该发生这种情况,但是可能导致这种情况的一个例子是,当您将生成的文件检入到源代码管理中时.

Why this works: libtool and aclocal.m4 are both files that are generated by your build system. If they are out of sync (generated by different versions of the build tools), then you get this error. Normally that shouldn't happen, but an example of something that can cause it is when you check in generated files to source control.

此解决方案的作用是删除并重新生成所有自动生成的文件.一旦将它们擦除并重新生成,它们将不再不同步.

What this solution does is delete and regenerate all the autogenerated files. Once they're erased and regenerated, they can't be out of sync anymore.

这篇关于libtool版本不匹配错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆