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

asked 2016-07-24 17:57:57 -0600

DJUego gravatar image

updated 2016-07-25 04:07:23 -0600

(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%):

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 ...
(more)
edit retag flag offensive close merge delete

Comments

I have "solved" the Release Mode problem.

In detection_based_tracker.cpp

#if (defined(__cplusplus) &&  __cplusplus > 199711L) || (defined(_MSC_VER) && _MSC_VER >= 1700)
// #define USE_STD_THREADS //THIS LINE IS DISABLED/COMMENTED
#endif

However the "Debug Mode" problem persists.

DJuego

DJUego gravatar imageDJUego ( 2016-08-10 08:47:49 -0600 )edit