在Windows系统上解决[ 23%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/has_non_zero.avx2.cpp.obj
mingw32-make[2]: *** [3rdparty\protobuf\CMakeFiles\libprotobuf.dir\build.make:274: 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2318: 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2
mingw32-make[1]: *** Waiting for unfinished jobs....
[ 23%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/matmul.avx2.cpp.obj
In file included from D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:276:0,
from D:/tool/opencv/sources/modules/core/src/precomp.hpp:88,
from D:\tool\opencv\cvbuild\modules\core\mathfuncs_core.avx2.cpp:2:
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In function 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&)':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: error: there are no arguments to '_mm256_extract_epi64' that depend on a template parameter, so a declaration of '_mm256_extract_epi64' must be available [-fpermissive]
return _mm256_extract_epi64(a, i);
^~~~~~~~~~~~~~~~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:276:0,
from D:/tool/opencv/sources/modules/core/src/precomp.hpp:88,
from D:\tool\opencv\cvbuild\modules\core\arithm.avx2.cpp:2:
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In function 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&)':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: error: there are no arguments to '_mm256_extract_epi64' that depend on a template parameter, so a declaration of '_mm256_extract_epi64' must be available [-fpermissive]
return _mm256_extract_epi64(a, i);
^~~~~~~~~~~~~~~~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:276:0,
from In file included from D:/tool/opencv/sources/modules/core/src/precomp.hpp:88D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:276:0,
from ,
from D:\tool\opencv\cvbuild\modules\core\convert.avx2.cpp:2D:/tool/opencv/sources/modules/core/src/precomp.hpp:88:
,
from D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In function ':
int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&)D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:':
In function 'D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: error: ':
there are no arguments to 'D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12:_mm256_extract_epi64 ' that depend on a template parameter, so a declaration of 'error: _mm256_extract_epi64there are no arguments to '' must be available [_mm256_extract_epi64-fpermissive' that depend on a template parameter, so a declaration of ']
return (a, i);
-fpermissive^~~~~~~~~~~~~~~~~~~~]
return
_mm256_extract_epi64D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12:(a, i);
(if you use 'D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12:-fpermissive ', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In instantiation of 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&) [with int i = 3; int64 = long long int; __m256i = __vector(4) long long int]':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2310:42: required from 'uint64 cv::hal_AVX2::v_extract_n(cv::hal_AVX2::v_uint64x4) [with int i = 3; uint64 = long long unsigned int]'
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:892:5: required from here
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: error: '_mm256_extract_epi64' was not declared in this scope
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: note: suggested alternative: '_mm256_extract_epi8'
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
_mm256_extract_epi8
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In instantiation of 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&) [with int i = 3; int64 = long long int; __m256i = __vector(4) long long int]':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2310:42: required from 'uint64 cv::hal_AVX2::v_extract_n(cv::hal_AVX2::v_uint64x4) [with int i = 3; uint64 = long long unsigned int]'
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:892:5: required from here
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: error: '_mm256_extract_epi64' was not declared in this scope
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: note: suggested alternative: '_mm256_extract_epi8'
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
_mm256_extract_epi8
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1561: modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx2.cpp.obj] Error 1
mingw32-make[2]: *** Waiting for unfinished jobs....
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1576: modules/core/CMakeFiles/opencv_core.dir/stat.avx2.cpp.obj] Error 1
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In instantiation of 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&) [with int i = 3; int64 = long long int; __m256i = __vector(4) long long int]':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2310:42: required from 'uint64 cv::hal_AVX2::v_extract_n(cv::hal_AVX2::v_uint64x4) [with int i = 3; uint64 = long long unsigned int]'
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:892:5: required from here
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: error: '_mm256_extract_epi64' was not declared in this scope
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: note: suggested alternative: '_mm256_extract_epi8'
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
_mm256_extract_epi8
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In instantiation of 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&) [with int i = 3; int64 = long long int; __m256i = __vector(4) long long int]':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2310:42: required from 'uint64 cv::hal_AVX2::v_extract_n(cv::hal_AVX2::v_uint64x4) [with int i = 3; uint64 = long long unsigned int]'
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:892:5: required from here
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: error: '_mm256_extract_epi64' was not declared in this scope
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: note: suggested alternative: '_mm256_extract_epi8'
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
_mm256_extract_epi8
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1606: modules/core/CMakeFiles/opencv_core.dir/convert.avx2.cpp.obj] Error 1
In file included from D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:276:0,
from D:/tool/opencv/sources/modules/core/src/precomp.hpp:88,
from D:\tool\opencv\cvbuild\modules\core\convert_scale.avx2.cpp:2:
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In function 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&)':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: error: there are no arguments to '_mm256_extract_epi64' that depend on a template parameter, so a declaration of '_mm256_extract_epi64' must be available [-fpermissive]
return _mm256_extract_epi64(a, i);
^~~~~~~~~~~~~~~~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1591: modules/core/CMakeFiles/opencv_core.dir/arithm.avx2.cpp.obj] Error 1
In file included from D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:276:0,
from D:/tool/opencv/sources/modules/core/src/precomp.hpp:88,
from D:\tool\opencv\cvbuild\modules\core\count_non_zero.avx2.cpp:2:
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In function 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&)':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: error: there are no arguments to '_mm256_extract_epi64' that depend on a template parameter, so a declaration of '_mm256_extract_epi64' must be available [-fpermissive]
return _mm256_extract_epi64(a, i);
^~~~~~~~~~~~~~~~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:276:0,
from D:/tool/opencv/sources/modules/core/src/precomp.hpp:88,
from D:\tool\opencv\cvbuild\modules\core\has_non_zero.avx2.cpp:2:
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In function 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&)':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: error: there are no arguments to '_mm256_extract_epi64' that depend on a template parameter, so a declaration of '_mm256_extract_epi64' must be available [-fpermissive]
return _mm256_extract_epi64(a, i);
^~~~~~~~~~~~~~~~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In instantiation of 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&) [with int i = 3; int64 = long long int; __m256i = __vector(4) long long int]':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2310:42: required from 'uint64 cv::hal_AVX2::v_extract_n(cv::hal_AVX2::v_uint64x4) [with int i = 3; uint64 = long long unsigned int]'
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:892:5: required from here
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: error: '_mm256_extract_epi64' was not declared in this scope
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: note: suggested alternative: '_mm256_extract_epi8'
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
_mm256_extract_epi8
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1621: modules/core/CMakeFiles/opencv_core.dir/convert_scale.avx2.cpp.obj] Error 1
In file included from D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:276:0,
from D:/tool/opencv/sources/modules/core/src/precomp.hpp:88,
from D:\tool\opencv\cvbuild\modules\core\matmul.avx2.cpp:2:
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In function 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&)':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: error: there are no arguments to '_mm256_extract_epi64' that depend on a template parameter, so a declaration of '_mm256_extract_epi64' must be available [-fpermissive]
return _mm256_extract_epi64(a, i);
^~~~~~~~~~~~~~~~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:12: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In instantiation of 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&) [with int i = 3; int64 = long long int; __m256i = __vector(4) long long int]':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2310:42: required from 'uint64 cv::hal_AVX2::v_extract_n(cv::hal_AVX2::v_uint64x4) [with int i = 3; uint64 = long long unsigned int]'
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:892:5: required from here
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: error: '_mm256_extract_epi64' was not declared in this scope
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: note: suggested alternative: '_mm256_extract_epi8'
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
_mm256_extract_epi8
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In instantiation of 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&) [with int i = 3; int64 = long long int; __m256i = __vector(4) long long int]':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2310:42: required from 'uint64 cv::hal_AVX2::v_extract_n(cv::hal_AVX2::v_uint64x4) [with int i = 3; uint64 = long long unsigned int]'
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:892:5: required from here
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: error: '_mm256_extract_epi64' was not declared in this scope
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: note: suggested alternative: '_mm256_extract_epi8'
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
_mm256_extract_epi8
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1636: modules/core/CMakeFiles/opencv_core.dir/count_non_zero.avx2.cpp.obj] Error 1
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1651: modules/core/CMakeFiles/opencv_core.dir/has_non_zero.avx2.cpp.obj] Error 1
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp: In instantiation of 'int64 cv::hal_AVX2::_v256_extract_epi64(const __m256i&) [with int i = 3; int64 = long long int; __m256i = __vector(4) long long int]':
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2310:42: required from 'uint64 cv::hal_AVX2::v_extract_n(cv::hal_AVX2::v_uint64x4) [with int i = 3; uint64 = long long unsigned int]'
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin.hpp:892:5: required from here
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: error: '_mm256_extract_epi64' was not declared in this scope
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
D:/tool/opencv/sources/modules/core/include/opencv2/core/hal/intrin_avx.hpp:130:32: note: suggested alternative: '_mm256_extract_epi8'
return _mm256_extract_epi64(a, i);
~~~~~~~~~~~~~~~~~~~~^~~~~~
_mm256_extract_epi8
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1666: modules/core/CMakeFiles/opencv_core.dir/matmul.avx2.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2382: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2
最新发布