libopencv_java.so is 32-bit instead of 64-bit in android eclipse issue [closed]

asked 2015-12-09 01:19:01 -0600

My User gravatar image

updated 2015-12-10 01:23:42 -0600

Hi,

This is the error that I've got after I trying to load the library in loadLibrary function inside AsyncServiceHelper class.

*My application work in android devices that run version bellow lollipop. *The OCV Face Detection run fine so I know that this is something in my app.

I already look over websites but nothing found to work.

Do anyone face with this error?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-09-26 15:20:21.992575

Comments

Can someone help here please.

My User gravatar imageMy User ( 2015-12-10 01:24:02 -0600 )edit

Which SDK do you use? 3.0 or 2.4? The 2.4.x SDK version does not contain 64 bit libraries.

mshabunin gravatar imagemshabunin ( 2015-12-10 03:50:23 -0600 )edit

I'm using SDK version 2.4.9, I also tried to work with 3.0 but in that SDK There is a missing variable called "BORDER_REPLICATE", So I didn't trying to run it.

One more thing that is wired, Is that the sample application of the OpenCV works fine with the 2.4.9 SDK

My User gravatar imageMy User ( 2015-12-10 04:02:18 -0600 )edit

Ok, I tried to use SDK 3.0.0 but it's not the problem, It still the same problem

My User gravatar imageMy User ( 2015-12-10 06:24:25 -0600 )edit

When using 3.0 SDK you need to load 3.0 library:

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

The OpenCV Android Manager version 3.0 contains both 3.0 (for all platforms) and 2.4 (for 32-bit platforms) libraries.

mshabunin gravatar imagemshabunin ( 2015-12-10 07:18:43 -0600 )edit

I changed it, but as I said it doesn't work and now also the Opencv samples doesn't work.

My User gravatar imageMy User ( 2015-12-10 07:26:34 -0600 )edit