繁体   English   中英

AVFoundation函数在arm6 / arm7中未定义

[英]AVFoundation functions undefined in arm6/arm7

我正在尝试使用此http://developer.apple.com/library/ios/#qa/qa1702/_index.html转换图像

我不知道是不是因为我使用的是xcode4,还是因为其他一些问题。 我正在尝试为IOS4编写代码。 并且无法编译它,因为链接器抱怨函数不存在。 但是这里有文档: http//developer.apple.com/library/ios/#documentation/QuartzCore/Reference/CVPixelBufferRef/Reference/reference.html#//apple_ref/doc/uid/TP40010033

任何帮助都会很棒

Undefined symbols for architecture armv6:
  "_CVPixelBufferGetHeight", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferGetBaseAddress", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferGetWidth", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CMSampleBufferGetImageBuffer", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferLockBaseAddress", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferGetBytesPerRow", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferUnlockBaseAddress", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status

添加固定的ImageIO.framework和CoreVideo.framework:

  "_CVPixelBufferGetHeight", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferGetBaseAddress", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferGetWidth", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferLockBaseAddress", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferGetBytesPerRow", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o
  "_CVPixelBufferUnlockBaseAddress", referenced from:
      -[CameraController imageFromSampleBuffer:] in CameraController.o

当我找到一个链接到这个我将编辑这个答案:

编辑:添加CoreMedia.framework修复了最后一个:

  "_CMSampleBufferGetImageBuffer", referenced from:
   -[CameraController imageFromSampleBuffer:] in CameraController.o

该项目的结果现已可用:) http://itunes.apple.com/us/app/live-video-puzzle/id430481367?mt=8

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM