VS 2015 internal error C1001 building the latest 3.0.0-dev release
The latest OpenCV 3.0-dev download at https://github.com/Itseez/opencv/arch... is causing an internal compiler error in VS Community 2015.
I am compiling on Windows 10 for 32-bit windows.
I can cmake and compile the latest OpenCV 3.0.0 download with VS 2015, so what's causing the problem with the -dev release?
1>------ Build started: Project: opencv_core, Configuration: Debug Win32 ------ 1> opencv_core_pch.cpp 1>E:\opencv-dev\build\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
Other people seem to be reporting the same or similar problem: http://stackoverflow.com/questions/33...
I have encountered the same problem and now I have to use VS 2015 with OpenCV 3 compiled by VS 2013 and some code issue errors, for example ORB, SIFT and SURF feature detections.
Yes you´re right! I just compiled it with Visual Studio 2010, and it works, the 8 errors listing are caused by ambiguous calls to overloaded functions. One is on line 104 of perf_matching.cpp, pow(2,i), changing it to (int)pow((long double)2, i) resolved the call. Not sure which function would be fastest for two ints passed, maybe pow(2.f, (float)i). I'm surprised these problems are still there.
Can you give the full list of that 8 errors?
They were all simple ambibuous calls, apart from a call to "round" that wasn't included; I fixed them all and so they don´t list, so the best way would be to compile the original 3.0.0-dev master with VS 2010