OpenCV 4.2 with JetPack 4.4 DP on Jetson AGX Xavier dev. kit

Hi,

For someone to resolve **OpenCV 4.2** with JetPack 4.4 DP build issue!

  • OpenCV 4.1.1 installed by SDK Manager does not support CUDA!
  • We cannot use CUDA backend (cv2.dnn.DNN_BACKEND_CUDA).

To summarize:

  1. cmake needs two flags:
 -D CUDNN_VERSION='8.0' \
 -D CUDNN_INCLUDE_DIR='/usr/include' \

as this: [link]

  1. sudo apt install libcudnn8-dev
    If you have some other issues to build, try this:

sudo apt-get install nvidia-jetpack

It will install all JetPack packages on your target.

Good luck!

2 Likes

Nice! Thanks for your sharing to community!