Ask Your Question
0

OpenCV Library 2.4.4 on Eclipse gives error

asked 2013-02-28 19:46:43 -0600

MysticBE gravatar image

I have downloaded the new OpenCV Library 2.4.4 from the website, and the newest version of Eclipse. When I import the library to the Project Explorer i get an error in the src files under org.opencv.video.Video.java

I had this error on both of my computers, so I can't be the only one who has this? Is there a solution, or what am I doing wrong?

edit retag flag offensive close merge delete

Comments

To understand your problems I would look at the error(s) messages you get on project build.

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2013-03-01 02:56:21 -0600 )edit

Description Resource Path Location Type The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files Video.java /OpenCV Library - 2.4.4/src/org/opencv/video line 1 Java Problem Description Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project OpenCV Library - 2.4.4 Unknown Java Problem

MysticBE gravatar imageMysticBE ( 2013-03-01 06:56:16 -0600 )edit

What Android SDK and NDK versions do you use? What Java? What's your host OS?

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2013-03-01 07:46:30 -0600 )edit

Version 21.1.0, Using Windows 7 64 bit, android-ndk-r8d, Java installed (Version 7 Update 15)

MysticBE gravatar imageMysticBE ( 2013-03-01 08:27:41 -0600 )edit

4 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-03 14:31:57 -0600

MysticBE gravatar image

updated 2013-03-03 14:32:31 -0600

I found the answer to my own problem. In my project.properties of the Library it said the next: android.library=true Project target. target=android-11

I just changed the 11 to 17 (like it was in the 2.4.3 Library) and the error went away. Hope this helps for you as well!

edit flag offensive delete link more
0

answered 2013-03-01 01:10:46 -0600

It's OK. Library project and samples were prepared in Eclipse 3.x. If I understand right, you use Eclipse 4.x (Juno). There is some incompatibility in projects for different Eclipse versions. You need to remove .settings folder from OpenCV library project directory [OpenCV4Adnroid_sdk]/sdk/java/.settings and from samples? then import it to Eclipse again and fix project properties (Project right mouse button menu -> Android tools -> Fix project properties).

edit flag offensive delete link more

Comments

I tried it but that didn't work for me. I'm using Juno indeed. The errors I get are: Description Resource Path Location Type The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files Video.java /OpenCV Library - 2.4.4/src/org/opencv/video line 1 Java Problem Description Resource Path Location Type

The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project OpenCV Library - 2.4.4 Unknown Java Problem

MysticBE gravatar imageMysticBE ( 2013-03-01 06:52:28 -0600 )edit
0

answered 2013-03-01 10:49:10 -0600

Andrey Pavlenko gravatar image
edit flag offensive delete link more
1

answered 2013-03-04 01:53:58 -0600

Google Android adt-bundle includes Android SDK for latest target only. There is no android-11 SDK there. You need to switch your project to using latest Android SDK or install SDK for Android-11 target.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-28 19:46:43 -0600

Seen: 3,781 times

Last updated: Mar 04 '13