由于opencv3版本以后SIFT等特征检测算法被放在了Opencv-contrib库中,所以需要用Cmake进行编译 ,但是用Cmake编译时,出现编译器找不到的问题,这是由于vs2015没有完整安装C++模块。

问题如下:

The C compiler identification is unknown
The CXX compiler identification is unknown

问题分析:

由于VS2015安装是不完全安装,其c++模块没有被完全安装,所以把C++模块完整安装即可

解决方法如下:

1.新建项目–Visual C++–Windows–安装通用平台工具
Cmake+vs2015编译Opencv-contrib报错“CXX compiler identification is unknown ”解决方法
Cmake+vs2015编译Opencv-contrib报错“CXX compiler identification is unknown ”解决方法

然后再进行Configure和Generate就可以了

Cmake+vs2015编译Opencv-contrib报错“CXX compiler identification is unknown ”解决方法

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-08-09
  • 2021-07-02
  • 2021-08-27
  • 2021-06-10
猜你喜欢
  • 2022-01-13
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
相关资源
相似解决方案