Ask Your Question
-1

OpenCV Paths Headaches in Eclipse with android [closed]

asked 2012-11-08 09:23:47 -0600

Cadtech gravatar image

I have followed the online android & eclipse documentation to the T and have set everything up accordingly... I am having problems with the pathing issues and can not fix them... There is missing information from the previous documentation versus the new one... I also can not get the sample apps to compile because of errors and the fact that most of your apps have dead or unused code... I try to install the manager manually from the 2.4.3-sdk apk folder and they are all invalid and will not install... If I can even get one of the apps to compile and upload it to the emulator it fails or the app has unexpectedly stopped and must close... There used to be documentation that showed what to do if you are using a certain version of android or eclipse or windows, that is now gone... The documentation also states to install the manager and binaries but there are 5 different managers and none of which are on the documentation all you have is opencv_2.4.3_manager_2.0.apk or something like it... that file doesn't exist...

Can anyone help me solve this or is this a complete waste of my time, nothing in the tutorials work except for the import of files to the workspace after that its crap...

Tutorials that are actually accurate would help and having pictures of every single step would help too...

I am sorry in advance for being a noob or for putting people down, or for bashing, this is not my intent but this is frustrating and must be shared... how can one expect to compile and use your code when the documentation doesn't even get you going 100%...

In any event, any help would be appreciated, Thanks in advance...

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2017-11-04 09:01:45.334875

Comments

1

I followed the instructions and able to run all the samples and tutorials. I used 2.4.3 OpenCV-Android. I ran them on a mix of Windows XP and Windows 7. The only thing that I cannot follow is I have to build against libc 4.4.3 instead of 4.6 when compiling 'Native' tutorial samples using the latest NDK (ndk-r8b).

frankie gravatar imagefrankie ( 2012-11-08 20:10:04 -0600 )edit

@frankie, Thanks for getting back to me on this situation...

Cadtech gravatar imageCadtech ( 2012-11-09 06:56:46 -0600 )edit

It is impossible to help you with such description. You're basically saying "nothing works", and this is not true. Please provide the numbered list of your issues.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-11-09 08:06:53 -0600 )edit

@Kirill well I can't get anything to work so yes nothing works and this is true or I wouldn't say it isn't... Secondly, I have to install two of six apk files from the apk folder from opencv-android, ALL are invalid and will not install through the adb... I run all the samples that came with opencv-android and onlly the java version actually can eb installed to the emulator... and thing using c++ with a java wrapper does not install and says IT IS INVALID... I am not making it up the program and files are... All my paths are right for there are not warnings or errors saying such... Tutorial #'s 3,4 will not install to the emulator, the face detection sample does not install to the emulator, color-blob does not install to the emulator no matter how I run or compile...

Cadtech gravatar imageCadtech ( 2012-11-09 13:12:43 -0600 )edit

@Kirill (Cont'd) It does not give errors as to why it will not install and says it is invalid... I can not understand the logcat, but under android in the console it says INVALID apk and stops and ends... If you can even get them to install on the emulator when you try and load up the app it always closes saying it has stopped... So obviously there is something wrong with the apk file or the coding... When trying the face detection app, in console for CDT it looks to be successful but in the android console says installation failed due to invalid apk file please check logcat launch canceled...

Cadtech gravatar imageCadtech ( 2012-11-09 13:17:28 -0600 )edit

There is however, a yellow exclamation point beside openCV Library-2.4.3 that says openCVEngineInterface.java has a problem in line 100 saying method getinterfacedesciptor() from type opencvengineinterface.stub.proxy is never used locally... other than that it shows and says no errors as to why this will not install on the emulator nor why it is considered an invalid apk... Maybe when you all signed the apk file is wrong or messed up or something... I have no clue... I can't get or post errors on here to show everyone... I am sorry for this...

Cadtech gravatar imageCadtech ( 2012-11-09 13:20:45 -0600 )edit

OpenCV Sample - Face Detection -->Right Click -->Run As --> Android Application. Under CDT build Console I get the following:

14:30:48 * Incremental Build of configuration Default for project OpenCV Sample - face-detection * "C:\Android\NDK\ndk-build.cmd" Install : libdetection_based_tracker.so => libs/armeabi-v7a/libdetection_based_tracker.so

14:30:48 Build Finished (took 380ms)

Cadtech gravatar imageCadtech ( 2012-11-09 13:37:29 -0600 )edit

Under Android Build Console I get: (minus the date and time stamp)

(Android Launch) (adb is running normally) (Performing org.opencv.samples.fd.FdActivity activity launch) (Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Test_8') (Uploading OpenCV Sample - face-detection.apk onto device 'emulator-5554') (Installing OpenCV Sample - face-detection.apk) (Installation failed due to invalid APK file) (Please check logcat output for more details) (Launch canceled)

Cadtech gravatar imageCadtech ( 2012-11-09 13:39:42 -0600 )edit

OK, so you don't have any questions, but you have some remarks. Great, people are usually using issue tracker in such cases. BTW, it would be great if you provide some patches through the github. This is what people usually do if they want to improve some open-source software.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-11-12 04:52:12 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-01-13 12:12:17 -0600

sukron gravatar image

There is however, a yellow exclamation point beside openCV Library-2.4.3 that says openCVEngineInterface.java has a problem in line 100 saying method getinterfacedesciptor() from type opencvengineinterface.stub.proxy is never used locally... other than that it shows and says no errors as to why this will not install on the emulator nor why it is considered an invalid apk... Maybe when you all signed the apk file is wrong or messed up or something... I have no clue... I can't get or post errors on here to show everyone... I am sorry for this...

edit flag offensive delete link more
0

answered 2012-12-18 07:52:49 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

If you believe, that this issue has been resolved, could you please accept the most appropriate answer (even if it's your own one) and close this question. It would greatly improve navigation and overall experience with OpenCV Q&A.

Thanks.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-08 09:23:47 -0600

Seen: 1,941 times

Last updated: Jan 13 '13