Hello I try to build OpenCv on my Raspberry Pi 3 with Ubuntu 16.04. But when I try to build it with Arm Neon enabled
My cmake Command is this one:
9%] Building CXX object
3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/fast.cpp.o
[ 9%] Building CXX object
3rdparty/carotene/hal/carotene/CMakeFiles/carotene_objs.dir/src/channels_combine.cpp.o
[ 11%] Built target carotene_objs
Scanning dependencies of target
tegra_hal
[ 12%] Linking CXX static library
../../lib/libtegra_hal.a
[ 12%] Built target tegra_hal
[ 12%] Building CXX object
modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o
In file included from
/home/flexpi/opencv/modules/core/include/opencv2/core/cvdef.h:222:0,
from /home/flexpi/opencv/modules/core/include/opencv2/core.hpp:52,
from /home/flexpi/opencv/modules/core/include/opencv2/core/utility.hpp:56,
from /home/flexpi/opencv/modules/core/src/precomp.hpp:49,
from /home/flexpi/opencv/build/modules/core/opencv_core_pch_dephelp.cxx:1:
/home/flexpi/opencv/modules/core/include/opencv2/core/hal/intrin_neon.hpp:288:21:
error: expected unqualified-id before
‘__extension__’
static inline short
vget_lane_f16(float16x4_t a, int b)
^
/home/flexpi/opencv/modules/core/include/opencv2/core/hal/intrin_neon.hpp:288:21:
error: expected unqualified-id before
‘)’ token
static inline short
vget_lane_f16(float16x4_t a, int b)
^
modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/build.make:71:
recipe for target
'modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o'
failed
make[2]: *
[modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o]
Error 1
CMakeFiles/Makefile2:1912: recipe for
target
'modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/all'
failed
make[1]: *
[modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/all]
Error 2
Makefile:160: recipe for target 'all'
failed
make: * [all] Error 2
-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Detected version of GNU GCC: 54 (504)
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success ...