3

我试图在我的android项目中集成opencv库,所以我点击了这个链接: Building native Opencv for Android with Eclipse give "undefined reference to `cvCreateFileCapture'" 但现在我仍然有这些错误:

jni/DetectionBasedTracker.cpp:5:23: 错误: opencv/cv.h: 没有这样的文件或目录 jni/DetectionBasedTracker.cpp:6:28: 错误: opencv/highgui.h: 没有这样的文件或目录

我应该改变application.mk吗?

4

1 回答 1

1

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

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

于 2013-03-27T06:46:21.970 回答