Jetpack 7.2 on orin nx

I am running JetPack 7.2 on an NVIDIA Jetson Orin NX (8GB module). While OpenCV 4.8 is pre-installed in this JetPack release, it lacks built-in CUDA acceleration. I followed the Q-Engineering source-compilation guide ( Install OpenCV on Jetson Orin Nano - Q-engineering ), attempting to build versions ranging from v4.8 through v4.13. Unfortunately, the compilation fails for every version. I need assistance with a compatible build procedure or CMake configuration to successfully enable CUDA support for OpenCV on this setup."

Hello @hemsinghb!

Based on the title and content of your topic, it looks like it may receive better visibility and feedback in a different category. We took the liberty of moving it for you.

If this was an incorrect assessment, please send me a direct message.

Disclaimer: this moderation suggestion and message were generated with AI assistance.

Please move it for betterment.

Hi,

Could you check if the package listed below works for you?

Thanks

I did not , no need to check as the ultralytics is perfectly working after the installation procedure followed given at : ("Quick Start Guide: NVIDIA Jetson with Ultralytics YOLO26 | Ultralytics Docs ").

  1. pip install ultralytics[export] > Reboot,
  2. pip install torch torchvision --index-url https://download.pytorch.org/whl/cu130
  3. pip install https://github.com/ultralytics/assets/releases/download/v0.0.0/onnxruntime_gpu-1.24.0-cp312-cp312-linux_aarch64.whl

. That’s it.

Actually, the above suggested site "sbsa/cu130 index" does not have the guide to install OpenCV 4.13 with CUDA v13.2 support.

Hi,

Solved:
I tried and edited some of the OpenCV V4.13 files and finally build from the source "OpenCV v4.13 with CUDA V13.2 support) on jetpack7.2.

Hi,

Good to know it works now.
Do you compile OpenCV from the source?

Thanks.

yes, please.

@hemsinghb

Can you elaborate on what was modified in the opencv 4.13 files. I’m having trouble compiling.

Thanks in Advance

hello joker , ! Do u need the patch file or process, may pl contact at hemsinghb@gmail.com

why don’t you just say what you did here?

There two files need to be patched. I have those two files . how to attach 2 files here . so i replied in email.

I’ve been away for several weeks.

@hemsinghb ,Thanks for responding.

I sent you an email.

Take care

cp ~/opencv_contrib/modules/cudev/include/opencv2/cudev/common.hpp
~/opencv_cuda13_patch/

cp ~/opencv_contrib/modules/cudev/include/opencv2/cudev/ptr2d/zip.hpp
~/opencv_cuda13_patch/

(attachments)

opencv_cuda13_patch.zip (3.91 KB)

Yes, but after the patch.

Can You give the process you used as I always end up with compiler faults

Ok after the fourth attempt it finally worked using your patches.

I now have opencv 4.13 with cuda support on Jetpack 7.2 orin nano.