3.1 build for "armeabi-v7a with NEON" fails

asked 2016-08-07 10:48:02 -0600

tmanthey gravatar image

On my OSX machine I added -DANDROID_ABI="armeabi-v7a with NEON" to the cmake command in platforms/scripts/cmake_android_arm.sh

When I now execute make -j5 in build_android_arm directory I get following compiler error:

opencv/modules/core/src/convert.cpp: In function 'void cv::cvtScaleHalf_(const T*, size_t, DT*, size_t, cv::Size) [with T = float; DT = short int; size_t = unsigned int; cv::Size = cv::Size_<int>]':
/Users/tmanthey/Documents/Development/opencv/modules/core/src/convert.cpp:4582:31: error: 'float16_t' was not declared in this scope
                     vst1_f16((float16_t*)(dst + x), v_dst);
                               ^
/Users/tmanthey/Documents/Development/opencv/modules/core/src/convert.cpp:4582:41: error: expected primary-expression before ')' token
                     vst1_f16((float16_t*)(dst + x), v_dst);
                                         ^
/Users/tmanthey/Documents/Development/opencv/modules/core/src/convert.cpp:4582:58: error: 'vst1_f16' was not declared in this scope
                     vst1_f16((float16_t*)(dst + x), v_dst);
                                                          ^
/Users/tmanthey/Documents/Development/opencv/modules/core/src/convert.cpp: In function 'void cv::cvtScaleHalf_(const T*, size_t, DT*, size_t, cv::Size) [with T = short int; DT = float; size_t = unsigned int; cv::Size = cv::Size_<int>]':
/Users/tmanthey/Documents/Development/opencv/modules/core/src/convert.cpp:4634:51: error: 'float16_t' was not declared in this scope
                     float16x4_t v_src = vld1_f16((float16_t*)(src + x));
                                                   ^
/Users/tmanthey/Documents/Development/opencv/modules/core/src/convert.cpp:4634:61: error: expected primary-expression before ')' token
                     float16x4_t v_src = vld1_f16((float16_t*)(src + x));
                                                             ^
/Users/tmanthey/Documents/Development/opencv/modules/core/src/convert.cpp:4634:71: error: 'vld1_f16' was not declared in this scope
                     float16x4_t v_src = vld1_f16((float16_t*)(src + x));
edit retag flag offensive close merge delete

Comments

I think that in the version 4.0 the FP16 version was corrected, but in 3.1 I don't know.

If you have found something, could you give to us because i want opencv 3.1 or 3.2.0 and not 4.0

Regards.

Simontraww gravatar imageSimontraww ( 2018-11-23 02:05:02 -0600 )edit