2015-10-29 59 views
0

我想使用Visual Studio 2015 C/C++编译器编译最新版本的OpenCV(3.0)。使用VC14平台工具集编译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

LIB文件夹是(没有的DLL /生成库) 。

当编译器崩溃,在输出窗口,我得到以下错误:

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 

任何帮助表示赞赏,感谢你在前进! :)

回答

1

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

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