link error in cross compilation of opencv 4.2.0 using cuda 11.4
I want to run a unittest on orin, where there is functional dependency of opencv 4.2.0. The compilation of my unittest was ok, but the link failed as following. Has any one has an idea about this?
Thanks in advance.
[100%] Linking CXX executable PPunittest
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppc.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppial.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppicc.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppidei.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppif.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppig.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppim.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppist.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppisu.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnppitc.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libnpps.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libcublas.so.11, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libcufft.so.10, needed by /home/orin/opencv_4.2.0/lib/libopencv_gapi.so.4.2.0, not found (try using -rpath or -rpath-link)
/opt/toolchains/linux-toolchain-aarch64/bin/…/lib/gcc/aarch64-linux-gnu/4.9.4/…/…/…/…/aarch64-linux-gnu/bin/ld: error in /usr/local/cuda-11.4/targets/aarch64-linux/lib/libcudart_static.a(cudart_static.o)(.eh_frame); no .eh_frame_hdr table will be created.