OS C Android library and "ranlib: warning for library ..."

When I tried to create 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 compiling, he 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 using this libsystem.aone and he said he could not read the characters: y Archive has no index, run ran lib to add one.

Does anyone know why? And what should I do to successfully compile?

Thank you so much.

+6
source share
2 answers

Not sure if this is your situation, but the Makefile I used hardlode ranlib in / usr / bin / ranlib. Apparently, Mac ranlib is not compatible with Android ranlib.

+12
source

, "ranlib" NDK . "Ranlib" NDK $ NDK_HOME/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ranlib. libXXX.a , . /arm-linux-androideabi-ranlib libXXX.a, .

0

All Articles