Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android C library built on OS X and "ranlib: warning for library..."

When I tried to build my c library on OS X 10.7.3, I use android-sdk-mac2.2, sdk tools version is 12, and use android-ndk-r6. When I finished my compiling it said :

ranlib: warning for library libsystem.a the table of contents is 
empty (no object file members in the library define global symbols)

I tried to use this libsystem.a, and it said could not read symbols: Archive has no index , run ran lib to add one.

Is anyone knowing why? And what should I do to compile successfully ?

Thanks very much .

like image 875
Bruce Wuu Avatar asked Mar 02 '12 17:03

Bruce Wuu


1 Answers

Not sure if this is your situation, but the Makefile I was using hard-coded ranlib to /usr/bin/ranlib. Apparently the Mac ranlib is not compatible with the Android ranlib.

like image 80
Dave Avatar answered Sep 21 '22 18:09

Dave