Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Nightmare with Android and OpenCV 2.4.6

Hello all,

I am trying to write an OpenCV app with my android. I have tried 2 Asus Tablets (TF300 and TF700T) and also a Samsung S4 phone.

In all I have the following error log on Eclipse:

*[2013-08-24 23:20:26 - OpenCV Library - 2.4.6] Could not find OpenCV Library - 2.4.6.apk!*

The rest of the log.

[2013-08-24 23:20:10 - TabletOCR] Android Launch! [2013-08-24 23:20:10 - TabletOCR] adb is running normally. [2013-08-24 23:20:10 - TabletOCR] Performing com.nando.android.MainActivity activity launch [2013-08-24 23:20:22 - TabletOCR] Uploading TabletOCR.apk onto device '5e246c8f' [2013-08-24 23:20:23 - TabletOCR] Installing TabletOCR.apk... [2013-08-24 23:20:26 - TabletOCR] Success! *[2013-08-24 23:20:26 - OpenCV Library - 2.4.6] Could not find OpenCV Library - 2.4.6.apk!* [2013-08-24 23:20:26 - TabletOCR] Starting activity com.nando.android.MainActivity on device 5e246c8f [2013-08-24 23:20:27 - TabletOCR] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.perceptivecore.android/.MainActivity } [2013-08-24 23:27:13 - TabletOCR] ------------------------------

basically, everytime I call an activity that has an org.opencv dependency it crashes.

I have OpenCV Library 2.4.6 as a project on the same workspace. I have added it as a dependecy project to mine after all online I've found has failed. I have the OpenCV Manager installed on the devices.

On the logcat I have:

VFY: unable to find class referenced in signature (Lorg/opencv/core/Mat;)

VFY: unable to resolve const-class 690 (Lcom/nando/android/gui/activities/CameraActivity;) in Lcom/nando/android/MainActivity;

Trying to set that under Project properties/Android/Library and add the reference makes so that the project does not compile under Eclipse and does not launch.

I have tried the tips on the following without success: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/android_dev_intro.html http://answers.opencv.org/question/1990/best-opencv-build-for-androidtegra3/ http://stackoverflow.com/questions/17574313/unable-to-display-controls-in-android-project-activity-using-opencv http://stackoverflow.com/questions/18241545/android-logcat-error-message-file-driverlist-txt-not-found http://forums.ouya.tv/discussion/1916/com-nvidia-nvcplsvc-files-driverlist-txt-not-found http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html#o4a-sdk

I would appreciate any help. The fact is: the app cannot find any OpenCV library when I start an activity that depend on them. The debugger stops (class not found) when I try to create an object with that class. If I try to display an activity that does not have OpenCV then it works great!

Any help is appreciated.

Thanks!

Nightmare with Android and OpenCV 2.4.6

Hello all,

I am trying to write an OpenCV app with my android. I have tried 2 Asus Tablets (TF300 and TF700T) and also a Samsung S4 phone.

In all I have the following error log on Eclipse:

*[2013-08-24 23:20:26 - OpenCV Library - 2.4.6] Could not find OpenCV Library - 2.4.6.apk!*

The rest of the log.

[2013-08-24 23:20:10 - TabletOCR] Android Launch! [2013-08-24 23:20:10 - TabletOCR] adb is running normally. [2013-08-24 23:20:10 - TabletOCR] Performing com.nando.android.MainActivity activity launch [2013-08-24 23:20:22 - TabletOCR] Uploading TabletOCR.apk onto device '5e246c8f' [2013-08-24 23:20:23 - TabletOCR] Installing TabletOCR.apk... [2013-08-24 23:20:26 - TabletOCR] Success! *[2013-08-24 23:20:26 - OpenCV Library - 2.4.6] Could not find OpenCV Library - 2.4.6.apk!* [2013-08-24 23:20:26 - TabletOCR] Starting activity com.nando.android.MainActivity on device 5e246c8f [2013-08-24 23:20:27 - TabletOCR] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.perceptivecore.android/.MainActivity } [2013-08-24 23:27:13 - TabletOCR] ------------------------------

basically, everytime I call an activity that has an org.opencv dependency it crashes.

I have OpenCV Library 2.4.6 as a project on the same workspace. I have added it as a dependecy project to mine after all online I've found has failed. I have the OpenCV Manager installed on the devices.

On the logcat I have:

VFY: unable to find class referenced in signature (Lorg/opencv/core/Mat;)

VFY: unable to resolve const-class 690 (Lcom/nando/android/gui/activities/CameraActivity;) in Lcom/nando/android/MainActivity;

Trying to set that under Project properties/Android/Library and add the reference makes so that the project does not compile under Eclipse and does not launch.

I have tried the tips on the following without success: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/android_dev_intro.html http://answers.opencv.org/question/1990/best-opencv-build-for-androidtegra3/ http://stackoverflow.com/questions/17574313/unable-to-display-controls-in-android-project-activity-using-opencv http://stackoverflow.com/questions/18241545/android-logcat-error-message-file-driverlist-txt-not-found http://forums.ouya.tv/discussion/1916/com-nvidia-nvcplsvc-files-driverlist-txt-not-found http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html#o4a-sdk

I would appreciate any help. The fact is: the app cannot find any OpenCV library when I start an activity that depend on them. The debugger stops (class not found) when I try to create an object with that class. If I try to display an activity that does not have OpenCV then it works great!

Any help is appreciated.

Thanks!