Saturday, 15 August 2015

xcode - Importing .dylib or .la files into iOS project -



xcode - Importing .dylib or .la files into iOS project -

after reading this awesome post tristan, compiled freetds utilize in ios, attempted compile unixodbc utilize in ios. able compile, great.

however, when compiled freetds, had .a file able bring xcode (along few .h files). time, compiler didn't produce .a file. instead, produced .la , .dylib file. far, have not been able utilize these files in ios project.

if accomplish of following, think problems solved:     1. re-compile unixodbc produces .a file, or     2. convert either .la or .dylib .a file, or     3. import either .la or .dylib project, can utilize in same way utilize .a file.

so far, clueless how of these things (or if it's possible). can please help me out?

thank you!

-rob

.dylib files dynamically linked libraries, whereas .a files statically linked ones (just google these 2 expressions). .la files irrelevant now, they're not essential, , don't contain code,

if configure script of unixodbc supports it, can specify --enable-static --disable-shared options enable building .a archive , not dylib. if configure script doesn't take these flags, can go ahead compile source files (it done configure), instead of taking resulting dylib, utilize ar command set .o object files form static archive.

ios xcode compilation cross-compiling unixodbc

No comments:

Post a Comment