在 Mac OS X 上使用 libltdl

发布于 2024-10-27 09:33:29 字数 1395 浏览 2 评论 0原文

我正在尝试将 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'

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

关于如何使其在 Mac 上运行有什么建议吗?

PS:我使用的是雪豹(10.6.7)。

更新

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

I'm trying to port a Linux C++ project to Mac OS X. During the configure step the following command is executed:

$ glibtoolize --ltdl --force --copy

Which fails with the following output:

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'

It turns out the folder /usr/share/libtool/libltdl doesn't exists on Mac OS X.

Any suggestions on how to make it work on Mac?

PS: I'm using Snow Leopard (10.6.7).

Update

It does seem to work fine when using MacPorts libtoolize (/opt/local/bin/glibtoolize).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

∞梦里开花 2024-11-03 09:33:29

它在使用 MacPorts 安装 libtool-devel 包后起作用:

sudo port install libtool-devel

It works after installing the libtool-devel package with MacPorts:

sudo port install libtool-devel
老旧海报 2024-11-03 09:33:29

错误:libtool-devel 已被 libtool 替换;请安装 libtool。

Error: libtool-devel has been replaced by libtool; please install libtool instead.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文