Ask Your Question

Revision history [back]

i have 6 errors when trying to install opencv on my macbook pro

/Users/vadli/Documents/ opencv-4.1.0/modules/core/include/opencv2/core/cvdef.h:782:39: error: use of undeclared identifier '_mm_cvtps_ph'; did you mean '_mm_cvtss_sd'? w = (ushort)_mm_cvtsi128_si32(_mm_cvtps_ph(v, 0)); ^~~~~~~~~~~~ _mm_cvtss_sd

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/cvdef.h:782:55: error: cannot initialize a parameter of type '__m128' (vector of 4 'float' values) with an rvalue of type 'int' w = (ushort)_mm_cvtsi128_si32(_mm_cvtps_ph(v, 0));

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/cvdef.h:813:26: error: use of undeclared identifier '_mm_cvtph_ps'; did you mean '_mm_cvtpd_ps'? _mm_store_ss(&f, _mm_cvtph_ps(_mm_cvtsi32_si128(w))); ^~~~~~~~~~~~ _mm_cvtpd_ps

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2746:24: error: use of undeclared identifier '_mm256_cvtph_ps'; did you mean '_mm256_cvtpd_ps'? return v_float32x8(_mm256_cvtph_ps(_mm_loadu_si128((const __m128i*)ptr))); ^~~~~~~~~~~~~~~ _mm256_cvtpd_ps

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2746:40: error: cannot initialize a parameter of type '__m256d' (vector of 4 'double' values) with an rvalue of type '__m128i' (vector of 2 'long long' values) return v_float32x8(_mm256_cvtph_ps(_mm_loadu_si128((const __m128i*)ptr))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2751:18: error: use of undeclared identifier '_mm256_cvtps_ph' __m128i ah = _mm256_cvtps_ph(a.val, 0); ^ 6 errors generated. make[2]: * [modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx2.cpp.o] Error 1 make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: ** [all] Error 2

click to hide/show revision 2
retagged

updated 2019-04-24 03:43:45 -0600

berak gravatar image

i have 6 errors when trying to install opencv on my macbook pro

/Users/vadli/Documents/ opencv-4.1.0/modules/core/include/opencv2/core/cvdef.h:782:39: error: use of undeclared identifier '_mm_cvtps_ph'; did you mean '_mm_cvtss_sd'? w = (ushort)_mm_cvtsi128_si32(_mm_cvtps_ph(v, 0)); ^~~~~~~~~~~~ _mm_cvtss_sd

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/cvdef.h:782:55: error: cannot initialize a parameter of type '__m128' (vector of 4 'float' values) with an rvalue of type 'int' w = (ushort)_mm_cvtsi128_si32(_mm_cvtps_ph(v, 0));

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/cvdef.h:813:26: error: use of undeclared identifier '_mm_cvtph_ps'; did you mean '_mm_cvtpd_ps'? _mm_store_ss(&f, _mm_cvtph_ps(_mm_cvtsi32_si128(w))); ^~~~~~~~~~~~ _mm_cvtpd_ps

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2746:24: error: use of undeclared identifier '_mm256_cvtph_ps'; did you mean '_mm256_cvtpd_ps'? return v_float32x8(_mm256_cvtph_ps(_mm_loadu_si128((const __m128i*)ptr))); ^~~~~~~~~~~~~~~ _mm256_cvtpd_ps

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2746:40: error: cannot initialize a parameter of type '__m256d' (vector of 4 'double' values) with an rvalue of type '__m128i' (vector of 2 'long long' values) return v_float32x8(_mm256_cvtph_ps(_mm_loadu_si128((const __m128i*)ptr))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/Users/vadli/Documents/opencv-4.1.0/modules/core/include/opencv2/core/hal/intrin_avx.hpp:2751:18: error: use of undeclared identifier '_mm256_cvtps_ph' __m128i ah = _mm256_cvtps_ph(a.val, 0); ^ 6 errors generated. make[2]: * [modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx2.cpp.o] Error 1 make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: ** [all] Error 2