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 .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With