{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/45","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/45/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/45/events","html_url":"https://github.com/mshabunin/test2/issues/45","id":95172287,"number":45,"title":"Error in Building OpenCV for Microsoft VS 2015","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mshabunin/test2/labels/affected:%20master","name":"affected: master","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/category:%20build/install","name":"category: build/install","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/priority:%20high","name":"priority: high","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/status:%20new","name":"status: new","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/target:%203.0","name":"target: 3.0","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T11:49:24Z","updated_at":"2015-07-15T11:49:24Z","closed_at":null,"body":"Converted from http://code.opencv.org/issues/4376\r\n```\n|| by Ahmed Dawod on 2015-06-03 11:22\n|| Status: New\n|| Priority: High\n|| Affected: branch 'master' (3.0-dev)\n|| Target: 3.0\n|| Category: build/install\n|| Tracker: bug\n```\n\nError in Building OpenCV for Microsoft VS 2015\n-----------\n```\nI have: - Windows 8.1 x64 - VS 2015 Community Edition\n\nI used this tutorial to build OpenCV to work with VS\n[[http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html]]\n\nI followed everything and built the OpenCV from its sources using CMake\nthe only components I didn't include are Intel © Integrated Performance\nPrimitives (IPP), CUDA and QT\n\nEverything went fine until the step where I open the solution OpenCV\nusing VS and try to build it I had a list of 9 errors:\n\n-   Severity Code Description Project File Line Error D8040 error\n    creating or communicating with child process opencv_perf_core\n    E:\\OpenCV\\Build\\modules\\core\\cl 1\n\n    Severity Code Description Project File Line Error C2264\n    'std::tuple<cv::size,perf::`anonymous-namespace'::matdepth>::tuple':\n    error in function definition or declaration; function not called\n    opencv_perf_core\n    E:\\OpenCV\\Source\\modules\\core\\perf\\opencl\\perf_channels.cpp 165\n\n    Severity Code Description Project File Line Error C1903 unable to\n    recover from previous error(s); stopping compilation\n    opencv_perf_core\n    E:\\OpenCV\\Source\\modules\\core\\perf\\opencl\\perf_channels.cpp 165\n\n    Severity Code Description Project File Line Error C2610\n    'std::tuple<cv::size,perf::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?\n```\n\nHistory\n-------\n##### by Philip L on 2015-06-05 11:45\n```\nThis seems to be an error of Visual Studio. I found this link\n(https://connect.microsoft.com/VisualStudio/feedback/details/800211/internal-compiler-error-with-qt-libraries)\nwhere a qt compilation is discussed on vs2015 rc and it seems to be\nfixxed in the release of vs2015\n\n    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\n```\n##### by Nate Guerin on 2015-06-12 02:51\n```\nI can reproduce the issue.\n\n@Philip, when I read the content link that you attached, I don't see\nwhere it says this will be resolved in 2015 release. The latest comment\nfrom Microsoft on 2015.04.24 was:\n\n__With the upcoming RC build of VS2015 I'm able to build both QT 4.8.4\nand 5.4.1. Since this is not a compiler that's officially supported by\nQT yet, there are a few small source changes that need to be made,\nmostly in 3rd party libraries that QT tools depend on. These are\nprimarily removing workarounds for older versions of the VC++ compiler.\n\nJonathan Emmett  \nDeveloper - Visual C++  \njoemmett@microsoft.com__\n```\n##### by Nate Guerin on 2015-06-12 03:05\n```\nNate Guerin wrote:\n\n  I can reproduce the issue.\n\n  @Philip, when I read the content link that you attached, I don't see\n  where it says this will be resolved in 2015 release. The latest\n  comment from Microsoft on 2015.04.24 was:\n\n  __With the upcoming RC build of VS2015 I'm able to build both QT 4.8.4\n  and 5.4.1. Since this is not a compiler that's officially supported by\n  QT yet, there are a few small source changes that need to be made,\n  mostly in 3rd party libraries that QT tools depend on. These are\n  primarily removing workarounds for older versions of the VC++\n  compiler.\n\n  Jonathan Emmett  \n  Developer - Visual C++  \n  joemmett@microsoft.com__\n\nThis issue is specifically caused by building the tests and the\nperformance tests. When I removed the 'tests' and 'perf_tests' from the\ncmake makefile generator options, and used the new vs2015 solution the\ngenerator created, opencv compiled successfully:\n\n========== Build: 181 succeeded, 0 failed, 0 up-to-date, 21 skipped\n==========\n\n@Ahmed, try removing the tests and perf_tests from the cmake options and\ncompiling.\n```\n##### by Philip L on 2015-06-12 03:12\n```\ni was refering to the second comment:  \n\n    Hello Monica,\n\n    Thanks for your patience here. Looks like Qt 4.8.4 is old version and current one is on 5.4.1. We're spending our investigations on the latest version of Qt with our current compiler. Also worth noting, the crash from the compiler on 4.8.4 is definitely gone and fixed with VS2015 release. Please stay tuned for status on 5.4.1.\n\n    Thanks,\n    Ulzii Luvsanbat\n    Visual C++ Team\n\nYou can still use all tests etc. since i am also using VS2015 RC for\nquite a while.  \nAs said this is a compiler (rather an optimizer) problem of the vs 2015\ninternals.\n\nBut you are right you can disable both of these things if you want a\nclean working build.\n```"}}