armeabi和armeabi,V7A文件夹 [英] armeabi and armeabi-v7a folder

查看:196
本文介绍了armeabi和armeabi,V7A文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Android项目,我现在用的是NDK调用本地方法。 我有两个库(.so文件),一个位于库/ armeabi 文件夹,另一个位于库/ armeabi- V7A lib文件夹。

I'm working on an Android project and I am using the NDK to call native methods. I have two libraries (.so files) and one is located in the libs/armeabi folder and the other one is located in the libs/armeabi-v7a lib folder.

如果我尝试运行应用程序,它不会加载该库中的 /库/ armeabi 文件夹。如果我将库文件到库/ armeabi-V7A 文件夹,然后将其加载库,但5到10分钟后崩溃,并给出了分段错误。

If I try to run the application then it won't load the library in the /libs/armeabi folder. If I move the library file to the libs/armeabi-v7a folder, then it loads the library but after 5 to 10 minutes it crashes and gives a segmentation fault error.

我在想,如果库(不同的文件夹)的位置,可能会导致这个问题。

I was wondering if the location of the library (different folder) might cause this problem.

推荐答案

我是新来的这个自己,而是去了相同的路径......据我所知,可能只具有单一的共享的库;使用多个库,让他们静一起将它们链接到一个共享的。当然,这是假定你正在建立的图书馆自己; - )

I'm new to this myself, but going the same path... as far as I know, one may only have a single shared library; to use several libraries, make them static and link them together to a single shared one. Of course, this assumes you're building the libraries yourself ;-)

这篇关于armeabi和armeabi,V7A文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆