How to install Opencv-3.3.1 in Jetpack4.4 of Jetson Xavier nx?

I am having Jetson Xavier nx with jetpack4.4
I want to install opencv-3.3.1 in my jetson.
Could you please tell me How to install Opencv-3.3.1 in Jetpack4.6 of Jetson Xavier nx?
I will be very thankful to you.

Hello @vashisht.akshat.rn.04

You can use this file:

For your setup you should change these lines below.
From:

OPENCV_VERSION=4.1.1
# Jetson Nano
ARCH_BIN=5.3

To:

OPENCV_VERSION=3.3.1
# Jetson Xavier NX
ARCH_BIN=7.2

Then, you can run this file:

./buildOpenCV.sh

Regards