gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 18:23:54 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com