libnative_camera_*.so cannot locate symbol on Samsung Galaxy S5 only

asked 2015-02-09 07:59:01 -0500

nimou gravatar image

updated 2015-02-10 13:03:09 -0500

I have a QT application using opencv and the android native camera. My app is running fine on several android devices, but NOT on my samsung galaxy S5 (SM-G900F) !

The problem happens at the call : cv::VideoCapture(CV_CAP_ANDROID); //using CV_CAP_ANY doesn't help

It tries to load several libnative_camera_r*.so librairies, but each time, it "cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r4.4.0.so"..."

As I said, it runs fine on other devices, so apparently, I can't find a version of libnative_camera_r*.so working for the Galaxy S5. I even tried to use the .so files provided in the opencv manager downloaded from the Play Store on my Galaxy S5, but still the exact same error.

full error message :

D/OpenCV::camera(25433): try to load library 'libnative_camera_r2.2.0.so'
D/OpenCV::camera(25433): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app/org.qtproject.example.Andcam-2/lib/arm/libnative_camera_r2.2.0.so, dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r2.2.0.so"..."
E/OpenCV::camera(25433): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library
E/OpenCV::camera(25433): Native_camera returned opening error: 4

And the same message appears for each libnative_camera_r*.so file in my android/libs/armeabi-v7a folder.

I have searched and searched but didn't find anything that could help me for my particular problem, so I'm asking here, can anyone help me ?

Thanks !

edit retag flag offensive close merge delete