问题描述
因此,我一直在尝试使用以下教程在Mac上使用C ++安装OpenCV:https://medium.com/@jaskaranvirdi/setting-up-opencv-and-c-development-environment-in-xcode-b6027728003,但我在Xcode上始终遇到此错误:
" 'opencv2/core.hpp' file not found "
我尝试将“库搜索路径”和“标题搜索路径”都设置为递归,但没有任何改变
我也在终端上收到此错误,我不知道它是否相关。我认为重要的是要注意,这不是我第一次尝试安装opencv,而且我不知道这是不是旧版本一直困扰着它。在安装此版本之前,我曾尝试清理所有内容,但不确定。
Undefined symbols for architecture x86_64:
"cv::namedWindow(cv::String const&,int)",referenced from:
_main in main-55ed98.o
"cv::String::deallocate()",referenced from:
cv::String::~String() in main-55ed98.o
cv::String::operator=(cv::String const&) in main-55ed98.o
"cv::String::allocate(unsigned long)",referenced from:
cv::String::String(char const*) in main-55ed98.o
"cv::imshow(cv::String const&,cv::_InputArray const&)",referenced from:
_main in main-55ed98.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
请问有关如何解决这些问题的任何建议?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)