我有一个使用 liblo (liblo.sourceforge.net) 的 iPhone 项目。我的项目在模拟器中运行良好,但是当我为设备构建时,ld
失败了:
ld: library not found for -llo
I suspect that this is because I just ran make install
when I downloaded liblo. I found a thread that suggested cross compiling by running ./configure --host=arm-apple-darwin
before make install
, but that doesn't seem to have fixed the problem.
[/usr/local/lib]$ file liblo.dylib
liblo.dylib: Mach-O dynamically linked shared library i386
有没有简单的解决办法?
最佳答案
这是为 OS 3.0 编译的文件。 http://www.samvermette.com/files/liblo.a.zip
只需将其添加到您的 XCode 项目中即可开始使用!
关于iphone - 为 iPhone 构建开源库 (liblo),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/961253/