Android的NDK找不到的STLport [英] Android NDK can't find stlport
本文介绍了Android的NDK找不到的STLport的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图编译使用的Android NDK rev8b本机库(从WebRTC中派生)。我收到以下错误:
<$p$p><$c$c>android_ndk/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/$p$pbuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld:找不到-lstlport_static因此,它不能找到STL库。
我已经安装了 libmagic-dev的
。
分布的版本(如返回的/ proc /版本
)是:
Linux版本的2.6.32-40泛型(buildd @黄)(GCC 4.4.3版(Ubuntu的4.4.3-4ubuntu5))#87,Ubuntu的SMP周二00年3月6日:56:56 UTC 2012
修改
我与修订8D同样的问题。
解决方案
好吧,我忘了具体说明:
LOCAL_LDLIBS:= -L / NDK路径/来源/ CXX-STL / STLport的/库/ armeabi
在Android.mk文件
I'm trying to compile a native library (derived from WebRTC) by using android NDK rev8b. I get the following error:
android_ndk/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: cannot find -lstlport_static
So it can't find the stl library.
I have installed libmagic-dev
.
The version of the distribution (as returned by /proc/version
) is:
Linux version 2.6.32-40-generic (buildd@yellow) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #87-Ubuntu SMP Tue Mar 6 00:56:56 UTC 2012
EDIT I have the same problem with the revision 8d
解决方案
OK I had forgotten to specify:
LOCAL_LDLIBS := -L/ndk-path/sources/cxx-stl/stlport/libs/armeabi
in the Android.mk file
这篇关于Android的NDK找不到的STLport的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文