Unkown错误编译opencv框架 [英] Unkown error compiling opencv framework
本文介绍了Unkown错误编译opencv框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在导入一个OpenCV框架,所以也许问题出在那里或者与编译器有关。
任何人都可以告诉我该怎么做或搜索?
Thanks。
未定义符号:_CGImageDestinationCreateWithURL,引用自:
cv :: ImageIOEncoder ::在OpenCV(grfmt_imageio.o)_CGImageDestinationAddImage中写入(cv :: Mat const&,std :: vector< int,std :: allocator< int>> const&),引用自:
cv :: ImageIOEncoder :: OpenCV(grfmt_imageio.o)_CGImageSourceCreateImageAtIndex中的write(cv :: Mat const&,std :: vector< int,std :: allocator< int>> const&),引用自:
cv: :OpenCV中的ImageIODecoder :: readHeader()(grfmt_imageio.o)_CGImageDestinationFinalize,引用自:
cv :: ImageIOEncoder :: write(cv :: Mat const&; std :: vector< int,std :: (grfmt_imageio.o)_CGImageSourceCreateWithURL,引用自:
cv :: ImageIODecoder :: readHeader()在OpenCV中(grfmt_imageio.o)ld:符号(s)不是在OpenCV(grfmt_imageio.o)中的分配器< int>>找到collect2:ld返回1退出状态
为了未来的访客(就像我;-)),我报告了古斯塔沃的自我回答: $ b $ b
添加
ImageIO.framework
至
链接框架和库
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? Thanks.
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:
Add "ImageIO.framework" to "Linked Frameworks and Library"
这篇关于Unkown错误编译opencv框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文