gocv
gocv copied to clipboard
Unable to install opencv on Windows11 64 bit
Description
I've installed opencv fellow https://gocv.io/getting-started/windows/ but something error.
The output of win_build_opencv.cmd
is the following:
[ 36%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/alpha_processing_sse41.c.obj
C:\opencv\opencv-4.7.0\3rdparty\libwebp\src\dsp\alpha_processing_sse41.c:52:26: error: always_inline function '_mm_shuffle_epi8' requires target feature
'ssse3', but would be inlined into function 'ExtractAlpha_SSE41' that is compiled without support for 'ssse3'
const __m128i b0 = _mm_shuffle_epi8(a0, kCstAlpha0);
^
C:\opencv\opencv-4.7.0\3rdparty\libwebp\src\dsp\alpha_processing_sse41.c:53:26: error: always_inline function '_mm_shuffle_epi8' requires target feature
'ssse3', but would be inlined into function 'ExtractAlpha_SSE41' that is compiled without support for 'ssse3'
const __m128i b1 = _mm_shuffle_epi8(a1, kCstAlpha1);
^
C:\opencv\opencv-4.7.0\3rdparty\libwebp\src\dsp\alpha_processing_sse41.c:54:26: error: always_inline function '_mm_shuffle_epi8' requires target feature
'ssse3', but would be inlined into function 'ExtractAlpha_SSE41' that is compiled without support for 'ssse3'
const __m128i b2 = _mm_shuffle_epi8(a2, kCstAlpha2);
^
C:\opencv\opencv-4.7.0\3rdparty\libwebp\src\dsp\alpha_processing_sse41.c:55:26: error: always_inline function '_mm_shuffle_epi8' requires target feature
'ssse3', but would be inlined into function 'ExtractAlpha_SSE41' that is compiled without support for 'ssse3'
const __m128i b3 = _mm_shuffle_epi8(a3, kCstAlpha3);
^
4 errors generated.
mingw32-make[2]: *** [3rdparty\libwebp\CMakeFiles\libwebp.dir\build.make:316: 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/alpha_processing_sse41.c.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:3395: 3rdparty/libwebp/CMakeFiles/libwebp.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2
Steps to Reproduce
- Following the guide on the website
- Trying to run a program that using the gocv library
- See the error when trying to compile the program.
My Environment
- Operating System and version: Windows 11 Home 21H2 build 22000.1696
- OpenCV version used 4.7.0
- gcc.exe (x86_64-win32-sjlj-rev0, Built by MinGW-W64 project) 7.3.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 4.cmake version 3.26.0