Ask Your Question

OpenCv Library won't import, does all steps twice.

asked 2013-08-16 18:36:52 -0500

vedtam gravatar image


I am new to OpenCv, and trying follow the steps in the basic tutorial to set it up on OSx, using latest version of Eclipse.

Steps I have done:

  • Got latest Android SDK
  • Added Android SDK components, (Tools and Android 3.0 API)
  • Downloaded and set the path for ADT
  • Downloaded the Android NDK
  • set application native path to android-ndk-r8

But while importing the examples, I get errors starting from the first line (where importing opencv ) in the main activity file: "The import cannot be resolved".

image description

Could someone please suggest, where am I wrong? Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-08-17 01:06:18 -0500

berak gravatar image

you (additionally) need to :

  • import the opencv library project into your workspace

  • add the opencv lib to your project

image description

edit flag offensive delete link more



Many thanks! As I have imported the "/opencv/sdk/java" into the workspace, the library was loaded successfully. Thanks!

vedtam gravatar imagevedtam ( 2013-08-17 02:58:51 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-08-16 18:36:52 -0500

Seen: 1,001 times

Last updated: Aug 17 '13