本文介绍了建立在OS X和"ranlib:库警告..."上的Android C库;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在OS X 10.7.3上构建c库时,我使用android-sdk-mac2.2,sdk工具版本为12,并使用android-ndk-r6.当我完成编译时,它说:

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)

我尝试使用此libsystem.a,它说无法读取符号:Archive has no index , run ran lib to add one.

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 ?

非常感谢.

推荐答案

不确定这是否是您的情况,但是我使用的硬编码ranlib到/usr/bin/ranlib的Makefile.显然Mac ranlib与Android ranlib不兼容.

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.

这篇关于建立在OS X和"ranlib:库警告..."上的Android C库;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 22:29