Linking dependencies for iOS

Hello!

I'm trying to use dlib on iOS. So, I found a tutorial which describes how I can do this. I did everything exactly with this recommendation, including adding in the Xcode Other Linker Flags these items:

/usr/lib/liblapack.dylib
/usr/local/lib/libjpeg.dylib
/usr/local/lib/libpng.dylib
/usr/lib/libcblas.dylib

But after my try of building I get Xcode linker error which says:

ld: building for iOS simulator, but linking against dylib built for OSX, file X for architecture x86_64

Where X - every library which listed above.

So, is this a correct building and using of dlib for iOS? And how can I use(or build) these libraries on iOS?

Any help will be very useful!

Those instructions are for using that framework on OS X. You'll need to build (or get) those libraries built for iOS devices and simulators.

Ok, thanks for your reply. And how can I do this?

Linking dependencies for iOS
 
 
Q