Build problem to enable NeOn option on ARM Ubuntu

asked 2012-10-10 04:55:39 -0500

asnl1987 gravatar image

updated 2012-10-10 05:03:33 -0500

I am developing OpenCV on ARM ubuntu using Panda board. I build successfully OpenCV on Panda board as in following instruction:

To enable NeOn instruction, I added following command to cmake/OpenCVCompilerOptions.cmake

set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -Wa,-a,-ad -mfloat-abi=softfp -mfpu=neon")

set(OPENCV_EXTRA_CXX_FLAGS "${OPENCV_EXTRA_CXX_FLAGS} -Wa,-a,-ad -mfloat-abi=softfp -mfpu=neon")

I built successfully but when I run any test program after build OpenCV (for example: ./opencv_test_imgproc in bin directory). There is always an error: ./opencv_test_imgproc: error while loading shared libraries: cannot open shared object file: No such file or directory

Than I export LD_LIBRARY_PATH to libstdc location. This error disappear but opencv_test_imgproc don't run any more without error.

Can you help me solve this problem? Can you teach me how to build OpenCV on Ubuntu using Panda board with NeOn option is enable?

edit retag flag offensive close merge delete