问题
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 .
回答1:
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.
来源:https://stackoverflow.com/questions/9537964/android-c-library-built-on-os-x-and-ranlib-warning-for-library