iphone - AVFoundation 函数在arm6/arm7中未定义

标签 iphone linker ios4 avfoundation

我正在尝试使用此 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

关于iphone - AVFoundation 函数在arm6/arm7中未定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5488513/

相关文章:

iphone - NSArray方法算法逻辑

c++ - CMake 库链接不正确

ios4 - CGContext & CGBitmapContextCreateImage 错误,如何解决?

c++ - 从linux交叉编译时如何链接到第三方dll?

boost - boost::hash_combine 链接哪个库

objective-c - 打开屏幕/ View (iPhone 应用程序)

iOS 如何制作图书应用程序?导航 Controller + 文本 + 索引

iphone - 如何在绘图前不清除上下文

iphone - 电影下载器应用程序如何在 iOS 中运行?

iphone - AAC/MP3 许可