opencv android 32bit,Android 6.0: Load 32-bit OpenCV library on 64-bit arch

Pardon me

I am using OpenCV for Android

The steps I took to install OpenCV were:

download the library (3.0)

In Android Studio: File ->New -> Import Module -> OpenCV-3.0.0-android-sdk -> sdk -> java

Right click project -> Module Settings -> app -> Dependencies -> + -> Module Dependency -> OpenCV

Created Folder jniLibs under app -> src -> main

Took contents from OpenCV 3.0's sdk -> native -> libs and pasted there

Implemented a BaseLoaderCallback

Called OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_0_0, this, mLoaderCallback);

Ensured the gradle.build targets, build tools, and minimum were the same in the OpenCV lib

I want to use another library that is only 32 bit. Android 6 searches the abi for 64-bit libraries first and if the device finds a 64-bit library, it loads that library and cannot also load 32-bit libraries.

Android 6 can load 32-bit libraries so long as that is all the device loads. They cannot mix.

So without a way to mix libraries (which is just not possible) I must have the originally loaded OpenCV libraries as 32-bit libraries.

What I am asking is if a feature could be implemented to allow developers the explicit statement of what bit format OpenCV loads. It automatically detects and searches for 64-bit when both formats are possible but if it is desired to omit 64 bit libraries, I should be able to specify to OpenCVLoader's Abi to only load from armeabi or armeabi-v7a.

Thank you again and hopefully that will clarify what I am asking,

Koala

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值