tags:

views:

598

answers:

3

I've got an iPhone project using liblo (liblo.sourceforge.net). My project's been working fine in the simulator, but as soon as I went to build for the device, ld fails:

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

Is there a simple solution?

+1  A: 

Well here's the file, compiled for OS 3.0. http://www.samvermette.com/files/liblo.a.zip

Just add it to your XCode project and you're ready to go!

Sam V
+1  A: 

I wrote a small tutorial on building cross platform iPhone libs that run both on the device and the simulator.

Martijn Thé
+1  A: 

Here's an updated version of jkooker's config script, for iOS 4: http://gist.github.com/519121

mikewoz