문제

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
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top