Ask Your Question
2

Error in Building OpenCV for Microsoft VS 2015

asked 2015-06-02 12:13:28 -0600

Ahmedn1 gravatar image

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/...

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?

edit retag flag offensive close merge delete

Comments

i've got no solution, but consider making an official issue with your findings

berak gravatar imageberak ( 2015-06-03 03:06:30 -0600 )edit

.........................

flowdee gravatar imageflowdee ( 2015-07-22 12:27:01 -0600 )edit

I have the same problem :/

Tekila gravatar imageTekila ( 2015-07-29 03:17:57 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2015-07-22 12:27:37 -0600

At the point you configure/generate the project with cmake, you have to disable the option opencv_perf_test.

Kind regards flowdee

edit flag offensive delete link more

Comments

Thank You! This worked for me.

Katianie gravatar imageKatianie ( 2018-06-26 14:55:30 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2015-06-02 12:13:28 -0600

Seen: 4,676 times

Last updated: Jun 02 '15