Hi, thanks for sharing this helpful script for building OpenCV on Jetson.
While using it on a Jetson Nano (L4T 32.7.x / CUDA 10.2), I ran into a build failure during the CUDA modules (e.g. opencv_cudev). The error was:
/usr/local/cuda-10.2/lib64/libnppial.so: file not recognized: File format not recognized
This happened because the script appends /usr/local/cuda/lib64 to ld.so.conf.
On Jetson devices (ARM aarch64), the correct path is actually:
/usr/local/cuda/targets/aarch64-linux/lib
After changing the line in the script:
# current (incorrect on Jetson)
echo '/usr/local/cuda/lib64' >> /etc/ld.so.conf.d/nvidia-tegra.conf
# correct for Jetson aarch64
echo '/usr/local/cuda/targets/aarch64-linux/lib' >> /etc/ld.so.conf.d/nvidia-tegra.conf
Hi, thanks for sharing this helpful script for building OpenCV on Jetson.
While using it on a Jetson Nano (L4T 32.7.x / CUDA 10.2), I ran into a build failure during the CUDA modules (e.g. opencv_cudev). The error was:
This happened because the script appends
/usr/local/cuda/lib64told.so.conf.On Jetson devices (ARM aarch64), the correct path is actually:
After changing the line in the script: