在 Mac OS X 上使用 libltdl
我正在尝试将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它在使用 MacPorts 安装
libtool-devel
包后起作用:It works after installing the
libtool-devel
package with MacPorts:错误:libtool-devel 已被 libtool 替换;请安装 libtool。
Error: libtool-devel has been replaced by libtool; please install libtool instead.