{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/4778","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/4778/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/4778/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/4778/events","html_url":"https://github.com/Itseez/opencv/issues/4778","id":97433248,"number":4778,"title":"MinGW (Windows): build error","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/affected:%20master","name":"affected: master","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20build/install","name":"category: build/install","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/priority:%20low","name":"priority: low","color":"AA9739"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-27T10:32:31Z","updated_at":"2015-12-08T17:36:15Z","closed_at":"2015-09-10T13:51:14Z","body":"Transferred from http://code.opencv.org/issues/3785\r\n```\n|| Konstantin Kulakov on 2014-07-01 04:46\n|| Priority: Low\n|| Affected: branch 'master' (3.0-dev)\n|| Category: build/install\n|| Tracker: Bug\n|| Difficulty: Medium\n|| PR: \n|| Platform: x64 / Windows\n```\n\nCompilation (installation) error of opencv at WIndows\n-----------\n```\nSourse in github: https://github.com/itseez/opencv \r\nCMake: 3.0 \r\nGCC: gcc (i686-posix-dwarf-rev2, Built by MinGW-W64 project) 4.9.0\r\n\r\nI compiled OpenCV. I got an error:\r\n\r\n[ 29%] Built target pch_Generate_opencv_core\r\nLinking CXX shared library ..\\..\\bin\\libopencv_core300.dll\r\nC:/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.0/../../../../i686-w64-ming\r\nw32/bin/ld.exe: *cannot find -lRunTmChk*\r\ncollect2.exe: error: ld returned 1 exit status\r\nmodules\\core\\CMakeFiles\\opencv_core.dir\\build.make:1103: recipe for target 'bin/\r\nlibopencv_core300.dll' failed\r\nmingw32-make[2]: *** [bin/libopencv_core300.dll] Error 1\r\nCMakeFiles\\Makefile2:1313: recipe for target 'modules/core/CMakeFiles/opencv_cor\r\ne.dir/all' failed\r\nmingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2\r\nmakefile:135: recipe for target 'all' failed\r\nmingw32-make: *** [all] Error 2\n```\n\nHistory\n-------\n##### Steven Puttemans on 2014-07-31 12:26\n```\nDid you have a previous VS system configured? I have read something about VC and Mingw screwing each others installations, and this seems exactly that.\n```\n##### Maxime Thébault on 2014-08-20 17:13\n```\nI'm having the same issue (cmake 2.8.12.2, Mingw 4.9.1 i686-posix-dwarf-rev0).\r\n\r\nI think I've never had Visual Studio installed on that computer.\n```\n##### Florian Simond on 2014-08-24 17:19\n```\nI'm having the same problem.\r\nI have never had VS installed on my computer neither, moreover I can compile OpenCV 2.4.9 without any problem...\n```\n##### lorenzoo lorenzoo on 2014-09-05 08:47\n```\nHi all,\r\n\r\nexactly the same here \r\n\r\nWindows7 64 bit and VS installed\r\n\r\nBy the way I can compile opencv 2.4.9 without problem\n```\n##### Ryein Goddard on 2014-09-11 21:41\n```\nI have the same issue using mingw as well.  I found that for some reason IPP was turn on by default when using Cmake 3.0 GUI.  I just disabled it and everything compiled fine.\n\nI have AMD CPU & GPU so not sure why IPP was turned on.  IPP is Intel only right?\n```\n##### Florian Simond on 2014-09-12 06:11\n```\nYes the problem seems to come with IPP.\n\nHere is some line of OpenCVFindIPP.cmake:\n<pre>\nif(WIN32 AND MINGW AND NOT IPP_VERSION_MAJOR LESS 7)\n    # Since IPP built with Microsoft compiler and /GS option\n    # ======================================================\n    # From Windows SDK 7.1\n    #   (usually in \"C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\lib\"),\n    # to avoid undefined reference to __security_cookie and _chkstk:\n    set(MSV_RUNTMCHK \"RunTmChk\")\n    set(IPP_LIBRARIES ${IPP_LIBRARIES} ${MSV_RUNTMCHK}${IPP_LIB_SUFFIX})\n\n    # To avoid undefined reference to _alldiv and _chkstk\n    # ===================================================\n    # NB: it may require a recompilation of w32api (after having modified\n    #     the file ntdll.def) to export the required functions\n    #     See http://code.opencv.org/issues/1906 for additional details\n    set(MSV_NTDLL    \"ntdll\")\n    set(IPP_LIBRARIES ${IPP_LIBRARIES} ${MSV_NTDLL}${IPP_LIB_SUFFIX})\nendif()\n</pre>\n\nI'm not a professional of CMake, but from what I understand it requires some resources of MSVC.... Am I correct ?\n```\n##### Michele Adduci on 2014-11-04 13:59\n```\nWITH_IPP=OFF, I can compile OpenCV 3.0 with MSVC 2012 without any problem, using OpenNI2 support and OpenGL too.\r\n\n-   % Done changed from 0 to 100\n```\n##### Maksim Shabunin on 2015-04-28 14:34\n```\n-   Target version changed from 3.0 to 3.1\n-   Priority changed from Normal to Low\n```"},"comment":{"url":"https://api.github.com/repos/Itseez/opencv/issues/comments/162955484","html_url":"https://github.com/Itseez/opencv/issues/4778#issuecomment-162955484","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/4778","id":162955484,"user":{"login":"AndreasWegmann","id":11626740,"avatar_url":"https://avatars.githubusercontent.com/u/11626740?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasWegmann","html_url":"https://github.com/AndreasWegmann","followers_url":"https://api.github.com/users/AndreasWegmann/followers","following_url":"https://api.github.com/users/AndreasWegmann/following{/other_user}","gists_url":"https://api.github.com/users/AndreasWegmann/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasWegmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasWegmann/subscriptions","organizations_url":"https://api.github.com/users/AndreasWegmann/orgs","repos_url":"https://api.github.com/users/AndreasWegmann/repos","events_url":"https://api.github.com/users/AndreasWegmann/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasWegmann/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T17:36:15Z","updated_at":"2015-12-08T17:36:15Z","body":"That is not really a fix. You just disabled the IPP for mingw. When du you support this for mingw?\r\nIs that really a problem of mingw or are there just missing references to be solved without visual studio ?\r\n\r\nI like to use that for a performance critical application, so I'm really interested in a usable solution.\r\n"}}