在Mac OS X上使用libltdl

时间:2011-03-29 15:52:13

标签: c++ gnu

我正在尝试将Linux C ++项目移植到Mac OS X.在配置步骤中执行以下命令:

$ glibtoolize --ltdl --force --copy

以下输出失败:

glibtoolize: putting auxiliary files in `.'.
glibtoolize: copying file `./ltmain.sh'
glibtoolize: putting auxiliary files in `.'.
glibtoolize: copying file `libltdl/config/compile'
glibtoolize: copying file `libltdl/config/config.guess'
glibtoolize: copying file `libltdl/config/config.sub'
glibtoolize: copying file `libltdl/config/depcomp'
glibtoolize: copying file `libltdl/config/install-sh'
glibtoolize: copying file `libltdl/config/missing'
glibtoolize: copying file `libltdl/config/ltmain.sh'
glibtoolize: putting macros in `libltdl/m4'.
glibtoolize: copying file `libltdl/m4/argz.m4'
glibtoolize: copying file `libltdl/m4/libtool.m4'
glibtoolize: copying file `libltdl/m4/ltdl.m4'
glibtoolize: copying file `libltdl/m4/ltoptions.m4'
glibtoolize: copying file `libltdl/m4/ltsugar.m4'
glibtoolize: copying file `libltdl/m4/ltversion.m4'
glibtoolize: copying file `libltdl/m4/lt~obsolete.m4'
glibtoolize: putting libltdl files in `libltdl'.
glibtoolize: `COPYING.LIB' not found in `/usr/bin/../share/libtool/libltdl'

事实证明,Mac OS X上不存在/ usr / share / libtool / libltdl文件夹。

有关如何在Mac上运行的任何建议吗?

PS:我正在使用Snow Leopard(10.6.7)。

更新

使用MacPorts libtoolize(/opt/local/bin/glibtoolize)时似乎工作正常。

2 个答案:

答案 0 :(得分:6)

在安装带有MacPorts的libtool-devel软件包之后,它可以正常运行:

sudo port install libtool-devel

答案 1 :(得分:0)

错误:libtool-devel已被libtool取代;请安装libtool。