Ask Your Question

flexbex's profile - activity

2016-10-12 23:41:13 -0500 received badge  Student (source)
2016-10-06 21:22:17 -0500 received badge  Enthusiast
2016-09-28 13:26:44 -0500 asked a question opencv 3.1 ffmpeg should I do shared enable

SO I'm installing opencv 3.1 for c++ use on Ubuntu 16.04 on Rpi 3 opencv with gcc 4.9. In some tutorials they recommend to build ffmpeg from source with shared enable and disable static flag. In others they just build ffmpeg from packages via apt-get. So I wonder whats the right way to do it?

2016-09-27 00:45:40 -0500 asked a question opnecv build fails on rpi3 with Ubuntu 16.04 and ENABLE_NEON=ON

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:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_WITH_DEBUG_INFO=OFF -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_opencv_ts=OFF -D BUILD_PERF_TESTS=OFF -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=OFF -D OPENCV_EXTRA_MODULES_PATH=/home/flexpi/opencv_contrib/modules -DBUILD_opencv_python=OFF -D ENABLE_VFPV3=ON -DENABLE_NEON=ON -D WITH_LIBV4L=ON -D WITH_TBB=ON ..

I get this Error.

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 Cmake Output is:

-- 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 ...

(more)