Android C library built on OS X and “ranlib: warning for library…”

假如想象 提交于 2020-01-14 08:14:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!