OpenCV3.xx installation, which version is easiest way to do it?

I am trying to install OpenCV for JetsonTx2. Cuda version is 9.0.
I tried to install OpenCV3.3 base on following link below, but it failed.
https://devtalk.nvidia.com/default/topic/1024631/cuda-setup-and-installation/cuda-9-opencv-gt-building-errors/
Does anyone know which opencv version is easiest combination with cuda 9.0? The version of opencv should be above 3.0.

Hi,

You can use OpenCV-3.4.0.
We also have an automatical script for installing it from source.
https://github.com/AastaNV/JEP/blob/master/script/install_opencv3.4.0.sh

Thanks.

Thank you. Instalation succeeded, by following your instruction!