在 OSX 10.6 上编译 libnoise

发布于 2024-08-27 04:42:55 字数 293 浏览 3 评论 0原文

有没有人编译或知道预编译的 MacOS X 10.6 的 libnoise ?由于 libtool 问题,它无法立即编译。

libtool --mode=compile g++   -c ../src/latlon.cpp -o ../src/latlon.o
libtool: unknown option character `-' in: --mode=compile

Has anyone compiled, or know of a pre-compiled, libnoise for MacOS X 10.6? It does not compile out of the box here due to a libtool issue.

libtool --mode=compile g++   -c ../src/latlon.cpp -o ../src/latlon.o
libtool: unknown option character `-' in: --mode=compile

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

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

发布评论

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

评论(1

许仙没带伞 2024-09-03 04:42:55

这是因为 OS X 有自己的 libtool,与 GNU 的 libtool 有很大不同,GNU 的 libtool 在 OS X 上称为 glibtool。您需要编辑 < src/ 中的 code>Makefile 来设置

LIBTOOL = glibtool

等。您还应该删除生成 .so 文件的行,因为 OS X 对于动态文件有不同的格式库及其安装方式。我建议您坚持使用 .a 文件。祝你好运!

此 Apple 文档移植 UNIX/Linux 应用程序 可能对你有帮助。

This is because OS X has its own libtool, quite different from GNU's libtool, which is called glibtool on OS X. You need to edit Makefile in src/ to set

LIBTOOL = glibtool

etc. You should also delete the lines which generates .so files, because OS X has a different format for the dynamic library and how it is installed. I'd recommend you to stick to .a file. Good luck!

This Apple document Porting UNIX/Linux Applications might help you.

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