NVcaffe install failure

#make all -j 16
/usr/bin/ld: skipping incompatible /usr/lib/libnvidia-ml.so when searching for -lnvidia-ml
/usr/bin/ld: skipping incompatible /usr/lib/libnvidia-ml.so when searching for -lnvidia-ml
/usr/bin/ld: cannot find -lopencv_imgcode
collect2: error: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe-nv.so.0.16.5] Error 1
make: *** Waiting for unfinished jobs…

Can you tell me how to solve?

follow the instructions here:

https://www.nvidia.com/en-us/data-center/gpu-accelerated-applications/caffe/