使用VC14平台工具集

时间:2015-10-29 10:13:43

标签: visual-studio-2015 opencv3.0 internal-compiler-error

我正在尝试使用Visual Studio 2015 C / C ++编译器编译最新版本的OpenCV(3.0)。

我从GitHub下载了最新的源代码,并使用CMake 3.4.0-rc1生成了解决方案。我只想构建库而没有任何其他功能(Contrib模块,CUDA,VTK,OpenNI等)

在我生成解决方案后(CMake没有显示任何错误)我尝试使用Microsoft Visual Studio 2015构建它。构建开始后,弹出一个窗口,告诉 " Microsoft C / C ++编译器驱动程序已停止工作" ,并在排序期间自动关闭。

Compiler error

当构建停止时,我收到以下错误:

enter image description here

我的 bin lib 文件夹为空(不会生成dll / libs)。

当编译器崩溃时,在“输出”窗口中出现以下错误:

1>D:\OPENCV-BUILD-VC14\cmake-output-3\modules\core\opencv_core_pch.cpp : fatal error C1001: An internal error has occurred in the compiler.
1>  (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 246)
1>   To work around this problem, try simplifying or changing the program near the locations listed above.
1>  Please choose the Technical Support command on the Visual C++
1>   Help menu, or open the Technical Support help file for more information

感谢任何帮助,谢谢你提前! :)

2 个答案:

答案 0 :(得分:1)

这是编译器中的错误。 OpenCV提供(或将在错误报告后提供)解决方法,或者您必须切换编译器。也许你可以找出一些不会触发ICE的编译器设置,但也许这些设置根本不存在。

请向Microsoft和OpenCV报告此错误。至少在Visual Studio 2015 RC1中,这似乎是一个已知问题:http://code.opencv.org/issues/4376

答案 1 :(得分:0)

OpenCV CUDA模块尚不支持VS2015(尽管它适用于所有非CUDA模块)。 VS2013是CUDA支持的最新编译器。请参阅此系统要求页面:http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html#system-requirements

相关问题