【发布时间】:2017-08-17 01:29:08
【问题描述】:
我正在尝试使用 OpenCV,我只想使用 UIImageToMat。
环境
Xcode 8.3.3
斯威夫特 3.0
OpenCV 3.2.0
错误
Apple Mach-O Linker Error Group
"UIImageToMat(UIImage const*, cv::Mat&, bool)", referenced from:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我尝试了以下操作。
- Precompile Prefix Header 更改为 Yes。
- 将 pch 文件添加到前缀标头中。
- C++ 标准库已更改为 libc++。
如果我删除了 UIImageToMat,我可以编译源代码。
也许,我的设置有问题。
有什么想法吗?
【问题讨论】: