Ask Your Question

Revision history [back]

OpenCV c++ application cross compile for arm64

Hello,

I am new to opencv. Architecture is ARM64. I tried to cross compile the opencv application but getting the below error.

/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_imgcodecs makefile:45: recipe for target 'test' failed /opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_core /opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_imgproc /opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_highgui collect2: error: ld returned 1 exit status make: * [test] Error 1

Opencv version is 3.2 and Ubuntu version is 16.04 and I have taken opencv libraries from cross compiled Yocto project root file system.

I did not cross compile the opencv ver3.2

Just i used yocto cross compiled libraries to compile the application.

Please help me how to resolve this problem.

Thanks, Ram.

click to hide/show revision 2
None

updated 2019-03-11 02:47:15 -0500

berak gravatar image

OpenCV c++ application cross compile for arm64

Hello,

I am new to opencv. Architecture is ARM64. I tried to cross compile the opencv application but getting the below error.

/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_imgcodecs
makefile:45: recipe for target 'test' failed
/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_core
/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_imgproc
/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lopencv_highgui
collect2: error: ld returned 1 exit status
make: * *** [test] Error 1

1

Opencv version is 3.2 and Ubuntu version is 16.04 and I have taken opencv libraries from cross compiled Yocto project root file system.

I did not cross compile the opencv ver3.2

Just i used yocto cross compiled libraries to compile the application.

Please help me how to resolve this problem.

Thanks, Ram. Ram.