Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Building OpenCV with MINGW-Builds gcc 6.1.0 (x86_64-win32-seh)

(Windows 10 64bit) Yeah. I am unable to build OpenCV from git (commit 1001b05) However i built without problem the same code with Microsoft Visual Studio 2015. :-)

In "Debug mode" i have this problem (31%): image description

In "Release mode" i have a different problem. The building progresses much more (81%) but... image description

Perhaps these logs may be useful for developers in order to catch bugs for the next opencv release version... (i hope humbly, of course)

DJuego

Building OpenCV with MINGW-Builds gcc 6.1.0 (x86_64-win32-seh)

(Windows 10 64bit) Yeah. I am unable to build OpenCV from git (commit 1001b05) However i built without problem the same code with Microsoft Visual Studio 2015. :-)

:-) In "Debug mode" i have this problem (31%): image description (31%):

YO@MONSTRUOSO p:\Compilados\x32-x64\TRABAJO_MINGW_x64\MinGW-Builds\opencv-git\builds\debug
> mingw32-make
[  2%] Built target zlib
[  7%] Built target libtiff
[ 12%] Built target libjpeg
[ 18%] Built target libwebp
[ 22%] Built target libjasper
[ 23%] Built target libpng
[ 31%] Built target IlmImf
[ 31%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/merge.cpp.obj
In file included from v:/MinGW-Builds/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include/emmintrin.h:31:0,
                 from P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/cvdef.h:168,
                 from P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core.hpp:52,
                 from P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/utility.hpp:56,
                 from p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/src/precomp.hpp:49,
                 from p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/src/merge.cpp:44:
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp: In function 'void _mm_interleave_ps(__m128&, __m128&, __m128&, __m128&)':
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:572:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk0 = _mm_shuffle_ps(v_r0, v_r1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:573:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk2 = _mm_shuffle_ps(v_r0, v_r1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:574:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk1 = _mm_shuffle_ps(v_g0, v_g1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:575:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk3 = _mm_shuffle_ps(v_g0, v_g1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:577:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk0 = _mm_shuffle_ps(layer2_chunk0, layer2_chunk1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:578:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk2 = _mm_shuffle_ps(layer2_chunk0, layer2_chunk1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:579:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk1 = _mm_shuffle_ps(layer2_chunk2, layer2_chunk3, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:580:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk3 = _mm_shuffle_ps(layer2_chunk2, layer2_chunk3, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:582:12: error: the last argument must be an 8-bit immediate
     v_r0 = _mm_shuffle_ps(layer1_chunk0, layer1_chunk1, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:583:12: error: the last argument must be an 8-bit immediate
     v_g0 = _mm_shuffle_ps(layer1_chunk0, layer1_chunk1, mask_hi);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:584:12: error: the last argument must be an 8-bit immediate
     v_r1 = _mm_shuffle_ps(layer1_chunk2, layer1_chunk3, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:585:12: error: the last argument must be an 8-bit immediate
     v_g1 = _mm_shuffle_ps(layer1_chunk2, layer1_chunk3, mask_hi);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp: In function 'void _mm_interleave_ps(__m128&, __m128&, __m128&, __m128&, __m128&, __m128&)':
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:593:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk0 = _mm_shuffle_ps(v_r0, v_r1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:594:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk3 = _mm_shuffle_ps(v_r0, v_r1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:595:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk1 = _mm_shuffle_ps(v_g0, v_g1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:596:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk4 = _mm_shuffle_ps(v_g0, v_g1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:597:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk2 = _mm_shuffle_ps(v_b0, v_b1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:598:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk5 = _mm_shuffle_ps(v_b0, v_b1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:600:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk0 = _mm_shuffle_ps(layer2_chunk0, layer2_chunk1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:601:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk3 = _mm_shuffle_ps(layer2_chunk0, layer2_chunk1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:602:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk1 = _mm_shuffle_ps(layer2_chunk2, layer2_chunk3, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:603:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk4 = _mm_shuffle_ps(layer2_chunk2, layer2_chunk3, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:604:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk2 = _mm_shuffle_ps(layer2_chunk4, layer2_chunk5, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:605:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk5 = _mm_shuffle_ps(layer2_chunk4, layer2_chunk5, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:607:12: error: the last argument must be an 8-bit immediate
     v_r0 = _mm_shuffle_ps(layer1_chunk0, layer1_chunk1, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:608:12: error: the last argument must be an 8-bit immediate
     v_g1 = _mm_shuffle_ps(layer1_chunk0, layer1_chunk1, mask_hi);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:609:12: error: the last argument must be an 8-bit immediate
     v_r1 = _mm_shuffle_ps(layer1_chunk2, layer1_chunk3, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:610:12: error: the last argument must be an 8-bit immediate
     v_b0 = _mm_shuffle_ps(layer1_chunk2, layer1_chunk3, mask_hi);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:611:12: error: the last argument must be an 8-bit immediate
     v_g0 = _mm_shuffle_ps(layer1_chunk4, layer1_chunk5, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:612:12: error: the last argument must be an 8-bit immediate
     v_b1 = _mm_shuffle_ps(layer1_chunk4, layer1_chunk5, mask_hi);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp: In function 'void _mm_interleave_ps(__m128&, __m128&, __m128&, __m128&, __m128&, __m128&, __m128&, __m128&)':
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:620:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk0 = _mm_shuffle_ps(v_r0, v_r1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:621:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk4 = _mm_shuffle_ps(v_r0, v_r1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:622:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk1 = _mm_shuffle_ps(v_g0, v_g1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:623:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk5 = _mm_shuffle_ps(v_g0, v_g1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:624:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk2 = _mm_shuffle_ps(v_b0, v_b1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:625:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk6 = _mm_shuffle_ps(v_b0, v_b1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:626:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk3 = _mm_shuffle_ps(v_a0, v_a1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:627:28: error: the last argument must be an 8-bit immediate
     __m128 layer2_chunk7 = _mm_shuffle_ps(v_a0, v_a1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:629:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk0 = _mm_shuffle_ps(layer2_chunk0, layer2_chunk1, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:630:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk4 = _mm_shuffle_ps(layer2_chunk0, layer2_chunk1, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:631:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk1 = _mm_shuffle_ps(layer2_chunk2, layer2_chunk3, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:632:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk5 = _mm_shuffle_ps(layer2_chunk2, layer2_chunk3, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:633:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk2 = _mm_shuffle_ps(layer2_chunk4, layer2_chunk5, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:634:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk6 = _mm_shuffle_ps(layer2_chunk4, layer2_chunk5, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:635:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk3 = _mm_shuffle_ps(layer2_chunk6, layer2_chunk7, mask_lo);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:636:28: error: the last argument must be an 8-bit immediate
     __m128 layer1_chunk7 = _mm_shuffle_ps(layer2_chunk6, layer2_chunk7, mask_hi);
                            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:638:12: error: the last argument must be an 8-bit immediate
     v_r0 = _mm_shuffle_ps(layer1_chunk0, layer1_chunk1, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:639:12: error: the last argument must be an 8-bit immediate
     v_b0 = _mm_shuffle_ps(layer1_chunk0, layer1_chunk1, mask_hi);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:640:12: error: the last argument must be an 8-bit immediate
     v_r1 = _mm_shuffle_ps(layer1_chunk2, layer1_chunk3, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:641:12: error: the last argument must be an 8-bit immediate
     v_b1 = _mm_shuffle_ps(layer1_chunk2, layer1_chunk3, mask_hi);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:642:12: error: the last argument must be an 8-bit immediate
     v_g0 = _mm_shuffle_ps(layer1_chunk4, layer1_chunk5, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:643:12: error: the last argument must be an 8-bit immediate
     v_a0 = _mm_shuffle_ps(layer1_chunk4, layer1_chunk5, mask_hi);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:644:12: error: the last argument must be an 8-bit immediate
     v_g1 = _mm_shuffle_ps(layer1_chunk6, layer1_chunk7, mask_lo);
            ^
P:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/core/include/opencv2/core/sse_utils.hpp:645:12: error: the last argument must be an 8-bit immediate
     v_a1 = _mm_shuffle_ps(layer1_chunk6, layer1_chunk7, mask_hi);
            ^
modules/core/CMakeFiles/opencv_core.dir/build.make:816: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/src/merge.cpp.obj' failed
mingw32-make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/merge.cpp.obj] Error 1
CMakeFiles/Makefile2:1420: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

YO@MONSTRUOSO p:\Compilados\x32-x64\TRABAJO_MINGW_x64\MinGW-Builds\opencv-git\builds\debug
>

In "Release mode" i have a different problem. The building progresses much more (81%) but... image descriptionbut...

    YO@MONSTRUOSO p:\Compilados\x32-x64\TRABAJO_MINGW_x64\MinGW-Builds\opencv-git\builds\release
> mingw32-make
[  2%] Built target zlib
[  7%] Built target libtiff
[ 12%] Built target libjpeg
[ 18%] Built target libwebp
[ 22%] Built target libjasper
[ 23%] Built target libpng
[ 31%] Built target IlmImf
[ 37%] Built target opencv_core
[ 44%] Built target opencv_imgproc
[ 46%] Built target opencv_imgcodecs
[ 46%] Built target opencv_videoio
[ 46%] Built target opencv_highgui
[ 48%] Built target opencv_ts
[ 51%] Built target opencv_test_core
[ 55%] Built target opencv_perf_core
[ 57%] Built target opencv_flann
[ 57%] Built target opencv_test_flann
[ 62%] Built target opencv_perf_imgproc
[ 67%] Built target opencv_test_imgproc
[ 70%] Built target opencv_ml
[ 71%] Built target opencv_test_ml
[ 74%] Built target opencv_photo
[ 74%] Built target opencv_perf_photo
[ 75%] Built target opencv_test_photo
[ 76%] Built target opencv_video
[ 77%] Built target opencv_test_video
[ 79%] Built target opencv_perf_video
[ 79%] Built target opencv_test_imgcodecs
[ 79%] Built target opencv_perf_imgcodecs
[ 79%] Built target opencv_shape
[ 79%] Built target opencv_test_shape
[ 80%] Built target opencv_test_videoio
[ 80%] Built target opencv_perf_videoio
[ 81%] Built target opencv_test_highgui
[ 81%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/detection_based_tracker.cpp.obj
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:160:14: error: 'thread' in namespace 'std' does not name a type
         std::thread second_workthread;
              ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:161:14: error: 'mutex' in namespace 'std' does not name a type
         std::mutex mtx;
              ^~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:162:26: error: 'mutex' is not a member of 'std'
         std::unique_lock<std::mutex> mtx_lock;
                          ^~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:162:26: error: 'mutex' is not a member of 'std'
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:162:36: error: template argument 1 is invalid
         std::unique_lock<std::mutex> mtx_lock;
                                    ^
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:163:14: error: 'condition_variable' in namespace 'std' does not name a type
         std::condition_variable objectDetectorRun;
              ^~~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:164:14: error: 'condition_variable' in namespace 'std' does not name a type
         std::condition_variable objectDetectorThreadStartStop;
              ^~~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp: In member function 'void cv::DetectionBasedTracker::SeparateDetectionWork::lock()':
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:141:22: error: request for member 'lock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
             mtx_lock.lock();
                      ^~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp: In member function 'void cv::DetectionBasedTracker::SeparateDetectionWork::unlock()':
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:149:22: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
             mtx_lock.unlock();
                      ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp: In constructor 'cv::DetectionBasedTracker::SeparateDetectionWork::SeparateDetectionWork(cv::DetectionBasedTracker&, cv::Ptr<cv::DetectionBasedTracker::IDetector>)':
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:204:34: error: 'mutex' is not a member of 'std'
     mtx_lock =  std::unique_lock<std::mutex>(mtx);
                                  ^~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:204:34: error: 'mutex' is not a member of 'std'
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:204:44: error: template argument 1 is invalid
     mtx_lock =  std::unique_lock<std::mutex>(mtx);
                                            ^
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:204:46: error: 'mtx' was not declared in this scope
     mtx_lock =  std::unique_lock<std::mutex>(mtx);
                                              ^~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:205:14: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.unlock();
              ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp: In member function 'bool cv::DetectionBasedTracker::SeparateDetectionWork::run()':
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:244:14: error: request for member 'lock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.lock();
              ^~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:251:18: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
         mtx_lock.unlock();
                  ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:259:5: error: 'second_workthread' was not declared in this scope
     second_workthread = std::thread(workcycleObjectDetectorFunction, (void*)this); //TODO: add attributes?
     ^~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:259:25: error: 'thread' is not a member of 'std'
     second_workthread = std::thread(workcycleObjectDetectorFunction, (void*)this); //TODO: add attributes?
                         ^~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:260:5: error: 'objectDetectorThreadStartStop' was not declared in this scope
     objectDetectorThreadStartStop.wait(mtx_lock);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:261:14: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.unlock();
              ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp: In function 'void* cv::workcycleObjectDetectorFunction(void*)':
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:292:65: error: 'class cv::DetectionBasedTracker::SeparateDetectionWork' has no member named 'objectDetectorThreadStartStop'; did you mean 'timeWhenDetectingThreadStartedWork'?
         ((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->objectDetectorThreadStartStop.notify_one();
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp: In member function 'void cv::DetectionBasedTracker::SeparateDetectionWork::workcycleObjectDetector()':
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:311:14: error: request for member 'lock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.lock();
              ^~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:317:9: error: 'objectDetectorThreadStartStop' was not declared in this scope
         objectDetectorThreadStartStop.notify_one();
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:324:9: error: 'objectDetectorRun' was not declared in this scope
         objectDetectorRun.wait(mtx_lock);
         ^~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:334:14: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.unlock();
              ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:351:22: error: request for member 'lock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
             mtx_lock.lock();
                      ^~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:358:26: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
                 mtx_lock.unlock();
                          ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:366:13: error: 'objectDetectorRun' was not declared in this scope
             objectDetectorRun.wait(mtx_lock);
             ^~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:374:22: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
             mtx_lock.unlock();
                      ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:425:18: error: request for member 'lock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
         mtx_lock.lock();
                  ^~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:441:18: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
         mtx_lock.unlock();
                  ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp: In member function 'void cv::DetectionBasedTracker::SeparateDetectionWork::stop()':
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:456:14: error: request for member 'lock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.lock();
              ^~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:462:18: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
         mtx_lock.unlock();
                  ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:472:5: error: 'objectDetectorRun' was not declared in this scope
     objectDetectorRun.notify_one();
     ^~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:473:5: error: 'objectDetectorThreadStartStop' was not declared in this scope
     objectDetectorThreadStartStop.wait(mtx_lock);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:475:14: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.unlock();
              ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp: In member function 'void cv::DetectionBasedTracker::SeparateDetectionWork::resetTracking()':
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:488:14: error: request for member 'lock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.lock();
              ^~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:505:14: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.unlock();
              ^~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp: In member function 'bool cv::DetectionBasedTracker::SeparateDetectionWork::communicateWithDetectingThread(const cv::Mat&, std::vector<cv::Rect_<int> >&)':
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:526:14: error: request for member 'lock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.lock();
              ^~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:559:9: error: 'objectDetectorRun' was not declared in this scope
         objectDetectorRun.notify_one();
         ^~~~~~~~~~~~~~~~~
p:/Compilados/x32-x64/TRABAJO_MINGW_x64/MinGW-Builds/opencv-git/modules/objdetect/src/detection_based_tracker.cpp:566:14: error: request for member 'unlock' in '((cv::DetectionBasedTracker::SeparateDetectionWork*)this)->cv::DetectionBasedTracker::SeparateDetectionWork::mtx_lock', which is of non-class type 'int'
     mtx_lock.unlock();
              ^~~~~~
modules/objdetect/CMakeFiles/opencv_objdetect.dir/build.make:122: recipe for target 'modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/detection_based_tracker.cpp.obj' failed
mingw32-make[2]: *** [modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/detection_based_tracker.cpp.obj] Error 1
CMakeFiles/Makefile2:3117: recipe for target 'modules/objdetect/CMakeFiles/opencv_objdetect.dir/all' failed
mingw32-make[1]: *** [modules/objdetect/CMakeFiles/opencv_objdetect.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

YO@MONSTRUOSO p:\Compilados\x32-x64\TRABAJO_MINGW_x64\MinGW-Builds\opencv-git\builds\release
>

Perhaps these logs may be useful for developers in order to catch bugs for the next opencv release version... (i hope humbly, of course)

DJuego