我正在尝试在iPhone上构建open_cv。我是http://github.com/niw/iphone_opencv_test的预编译版本,正在看到以下构建错误...
"_cvCvtColor", referenced from:
+[PFFaceDetection CreateIplImageFromUIImage:] in PFFaceDetection.o
"_OBJC_CLASS_$_PFImageEffects", referenced from:
objc-class-ref-to-PFImageEffects in PFEditorViewController.o
"_cvReleaseHaarClassifierCascade", referenced from:
+[PFFaceDetection detectFacesWithImage:] in PFFaceDetection.o
"_cvHaarDetectObjects", referenced from:
+[PFFaceDetection detectFacesWithImage:] in PFFaceDetection.o
"_cvReleaseMemStorage", referenced from:
+[PFFaceDetection detectFacesWithImage:] in PFFaceDetection.o
"_cvCreateImage", referenced from:
+[PFFaceDetection CreateIplImageFromUIImage:] in PFFaceDetection.o
+[PFFaceDetection CreateIplImageFromUIImage:] in PFFaceDetection.o
-[UIImage(OpenCV) cvGrayscaleImage] in UIImageOpenCV.o
-[UIImage(OpenCV) cvImage] in UIImageOpenCV.o
"_cvEqualizeHist", referenced from:
+[PFFaceDetection detectFacesWithImage:] in PFFaceDetection.o
"_cvLoad", referenced from:
+[PFFaceDetection detectFacesWithImage:] in PFFaceDetection.o
"_cvCreateMemStorage", referenced from:
最佳答案
您似乎没有将适当的OpenCV库链接到您的项目中。示例项目根据当前选择的体系结构使用不同的库路径。相反,可以重命名模拟器版本并将所有四个文件拖到Xcode项目中。