Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error in Building OpenCV for Microsoft VS 2015

I have: - Windows 8.1 x64 - VS 2015 Community Edition

I used this tutorial to build OpenCV to work with VS http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html

I followed everything and built the OpenCV from its sources using CMake the only components I didn't include are Intel © Integrated Performance Primitives (IPP), CUDA and QT

Everything went fine until the step where I open the solution OpenCV using VS and try to build it I had a list of 9 errors:

Severity Code Description Project File Line Error D8040 error creating or communicating with child process opencv_perf_core E:\OpenCV\Build\modules\core\cl 1

Severity Code Description Project File Line Error C2264 'std::tuple<cv::size,perf::`anonymous-namespace'::matdepth>::tuple': error in function definition or declaration; function not called opencv_perf_core E:\OpenCV\Source\modules\core\perf\opencl\perf_channels.cpp 165

Severity Code Description Project File Line Error C1903 unable to recover from previous error(s); stopping compilation opencv_perf_core E:\OpenCV\Source\modules\core\perf\opencl\perf_channels.cpp 165

Severity Code Description Project File Line Error C2610 'std::tuple<cv::size,perf::<code>anonymous-namespace'::MatDepth>::tuple(const std::tuple<cv::Size,perf::anonymous-namespace'::MatDepth> &)': is not a special member function which can be defaulted (compiling source file E:\OpenCV\Source\modules\core\perf\opencl\perf_channels.cpp) opencv_perf_core E:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple 325

Severity Code Description Project File Line Error C2610 'std::tuple<cv::size,perf::<code>anonymous-namespace'::MatDepth>::tuple(std::tuple<cv::Size,perf::anonymous-namespace'::MatDepth> &&)': is not a special member function which can be defaulted (compiling source file E:\OpenCV\Source\modules\core\perf\opencl\perf_channels.cpp) opencv_perf_core E:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple 326

Severity Code Description Project File Line Error C2535 'std::tuple<cv::size,perf::<code>anonymous-namespace'::MatDepth> &std::tuple<cv::Size,perf::anonymous-namespace'::MatDepth>::operator =(const std::tuple<cv::size,perf::`anonymous-namespace'::matdepth> &)': member function already defined or declared (compiling source file E:\OpenCV\Source\modules\core\perf\opencl\perf_channels.cpp) opencv_perf_core E:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple 452

Severity Code Description Project File Line Error C2382 'std::tuple<cv::size,perf::`anonymous-namespace'::matdepth>::operator =': redefinition; different exception specifications (compiling source file E:\OpenCV\Source\modules\core\perf\opencl\perf_channels.cpp) opencv_perf_core E:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple 452

Severity Code Description Project File Line Error C3861 '.?AV?$Matx@N$01$01@cv@@': identifier not found (compiling source file E:\OpenCV\Source\modules\core\test\test_mat.cpp) opencv_test_core E:\OpenCV\Source\modules\core\include\opencv2\core\mat.inl.hpp 1597

Severity Code Description Project File Line Error C2672 'cv::Mat::operator cv::Matx<double,2,2>': no matching overloaded function found (compiling source file E:\OpenCV\Source\modules\core\test\test_mat.cpp) opencv_test_core E:\OpenCV\Source\modules\core\include\opencv2\core\mat.inl.hpp 1597

So what is the solution?