1

我正在使用最新版本的opencv ( opencv 2.4.9 ),并且必须具有Core Plot (绘图框架)所需的-ObjC 标志。

当我在其他标志中设置-ObjC时,我得到了很多类型的错误(实际上是 28 个):Undefined symbols for architecture i386如下:

Undefined symbols for architecture i386:
"_CMSampleBufferGetImageBuffer", referenced from:
-[CaptureDelegate captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_avfoundation.o)
CvCaptureFile::retrieveFramePixelBuffer() in opencv2(cap_avfoundation.o)
-[CvVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_ios_video_camera.o)
"_CMSampleBufferGetPresentationTimeStamp", referenced from:
-[CvVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_ios_video_camera.o)
"_CMSampleBufferInvalidate", referenced from:
CvCaptureFile::retrieveFramePixelBuffer() in opencv2(cap_avfoundation.o)
"_CMTimeMake", referenced from:
CvCaptureCAM::startCaptureDevice(int) in opencv2(cap_avfoundation.o)
CvVideoWriter_AVFoundation::writeFrame(_IplImage const*) in opencv2(cap_avfoundation.o)
-[CvVideoCamera createVideoDataOutput] in opencv2(cap_ios_video_camera.o)
"_CMVideoFormatDescriptionGetPresentationDimensions", referenced from:
CvCaptureCAM::getProperty(int) in opencv2(cap_avfoundation.o)
"_CVBufferRelease", referenced from:
-[CaptureDelegate captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_avfoundation.o)
-[CaptureDelegate updateImage] in opencv2(cap_avfoundation.o)
CvCaptureFile::retrieveFramePixelBuffer() in opencv2(cap_avfoundation.o)
... etc

这是与Bartosz Bialecki相同的问题,我尝试了建议的解决方案,但问题仍然存在。

有人有想法吗?

编辑 :

这是我包含的所有框架:

在此处输入图像描述

4

3 回答 3

10

问题解决了添加几个框架 :CoreVideo.framework,, AssetsLibrary.framework.CoreMedia.framework

以下是包含框架的完整列表: 在此处输入图像描述

于 2014-05-14T07:25:15.213 回答
1

以下是您需要导入到项目中以构建成功的列表框架。这是相关链接

AVFoundation
opencv2

Accelerate

AssetsLibrary

CoreGraphics

CoreImage

CoreMedia

CoreVideo

QuartzCore

UIKit
于 2015-05-14T10:46:16.237 回答
-1

添加以下框架对我有用

  • AV基金会
  • 核心媒体
  • 资产库
  • 核心视频
于 2018-01-11T16:05:07.967 回答