1

我试图将 opencv 库集成到我的 android 项目中。我有这些错误:

jni/DetectionBasedTracker.cpp:5:23: error: opencv/cv.h: No such file or directory jni/DetectionBasedTracker.cpp:6:28: error: opencv/highgui.h: No such file or directory

知道如何解决此错误吗?

4

1 回答 1

1

您是否在项目中引用 OpenCV Library-2.4.4,在Project Properties > Android > Library中?

您是否包含<path_to_OpenCV4Android_sdk>/sdk/native/jni/include在 Project Properties > C/C++ General > Paths and Symbols > GNU C++中?

于 2013-07-11T11:44:24.870 回答