本文介绍了编译opencv框架时发生未知错误:未定义符号:"_ CGImageDestinationCreateWithURL";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Xcode给我以下错误,我真的不知道该怎么办,这使我发疯.我正在导入OpenCV框架,因此问题可能出在其中或与编译器有关.谁能告诉我该怎么做或搜索?
Xcode is giving me the following error, I don't really know what to do, is driving my crazy.I'm importing an OpenCV framework so maybe the problem is there or something related to the compiler.Could anyone tell me what to do or search for?
Undefined symbols: "_CGImageDestinationCreateWithURL", referenced from:
cv::ImageIOEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)in OpenCV(grfmt_imageio.o) "_CGImageDestinationAddImage", referenced from:
cv::ImageIOEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)in OpenCV(grfmt_imageio.o) "_CGImageSourceCreateImageAtIndex", referenced from:
cv::ImageIODecoder::readHeader() in OpenCV(grfmt_imageio.o) "_CGImageDestinationFinalize", referenced from:
cv::ImageIOEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)in OpenCV(grfmt_imageio.o) "_CGImageSourceCreateWithURL", referenced from:
cv::ImageIODecoder::readHeader() in OpenCV(grfmt_imageio.o) ld: symbol(s) not found collect2: ld returned 1 exit status
推荐答案
为方便将来的访问者(如我;-)),我报告古斯塔沃自我解答:
Just for sake of future visitors (like me ;-)), I report the Gustavo self-answer:
添加 " ImageIO.framework "到 "链接的框架和库"
Add "ImageIO.framework"to "Linked Frameworks and Library"
这篇关于编译opencv框架时发生未知错误:未定义符号:"_ CGImageDestinationCreateWithURL";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!