[英]Compiling libnoise on OSX 10.6
Has anyone compiled, or know of a pre-compiled, libnoise for MacOS X 10.6? 是否有人为MacOS X 10.6编译过或知道预编译过的libnoise ? It does not compile out of the box here due to a libtool issue. 由于libtool的问题,它在这里没有开箱即用的编译能力。
libtool --mode=compile g++ -c ../src/latlon.cpp -o ../src/latlon.o
libtool: unknown option character `-' in: --mode=compile
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 这是因为OS X拥有自己的libtool
,与GNU的libtool
完全不同,后者在OS X上称为glibtool
。您需要在src/
编辑Makefile
进行设置
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. 等。您还应该删除生成.so
文件的行,因为OS X动态库及其安装方式的格式不同。 I'd recommend you to stick to .a
file. 我建议您坚持使用.a
文件。 Good luck! 祝好运!
This Apple document Porting UNIX/Linux Applications might help you. 此Apple文档“ 移植UNIX / Linux应用程序”可能会为您提供帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.