0

我对 Android 有一定的了解,我想学习 OpenCV,为此我遵循了几个教程并最终完成了以下步骤。

  1. Download an eclipse for C/C++ developers
  2. Added the Android plugin
  3. Set the path for NDK
  4. Downloaded OpenCV Library and samples
  5. Imported the library and samples in the eclipse
  6. installed OpenCV manager in my device

但是,令我沮丧的是,库文件夹中出现了一个叉号,所有其他示例文件夹都显示了一个脚印或构建错误,我错过了哪一步。请帮忙。提前谢谢。

4

1 回答 1

2

Right click on project -> properties->android. Add android library to your android project

Add opencv library into your project. Right click on project -> properties->android add library

To convert project into c/c++ project

Right click on project -> New -> other -> c/c++ -> convert to c/c++ project

If you have converted your project into c/c++ project ensure as follows

Right click on

project -> properties->c/c++ General -> Paths and Symbols -> includes -> GNU c and GNU c++ add the path E:/android-ndk-r8d/platforms/android-14/arch-arm/usr/include

Similar to this

Also add the path C:\OpenCV-2.4.5-android-sdk\sdk\native\jni\include as above

于 2013-05-13T07:56:05.047 回答