danini / graph-cut-ransac

The Graph-Cut RANSAC algorithm proposed in paper: Daniel Barath and Jiri Matas; Graph-Cut RANSAC, Conference on Computer Vision and Pattern Recognition, 2018. It is available at http://openaccess.thecvf.com/content_cvpr_2018/papers/Barath_Graph-Cut_RANSAC_CVPR_2018_paper.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix OpenCV windows build

akaszynski opened this issue · comments

OpenCV is failing to build using MinGW.

FAILED: modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.obj 
C:\ProgramData\chocolatey\bin\c++.exe -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:/a/graph-cut-ransac/graph-cut-ransac/opencv/build -ID:/a/graph-cut-ransac/graph-cut-ransac/opencv/modules/core/src -ID:/a/graph-cut-ransac/graph-cut-ransac/opencv/modules/core/include -ID:/a/graph-cut-ransac/graph-cut-ransac/opencv/build/modules/core -IC:/Strawberry/c/include -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG  -Winvalid-pch  -include "D:/a/graph-cut-ransac/graph-cut-ransac/opencv/build/modules/core/precomp.hpp" -MD -MT modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.obj -MF modules\core\CMakeFiles\opencv_core.dir\src\umatrix.cpp.obj.d -o modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.obj -c D:/a/graph-cut-ransac/graph-cut-ransac/opencv/modules/core/src/umatrix.cpp
cc1plus.exe: warning: command-line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
cc1plus.exe: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:192: MapViewOfFileEx: Attempt to access invalid address.