Building openCV from either Jetsonhacks and Jkjung results an error

I’ve been strugling for days, I’ve tried to follow instructions by jkjung and Jetsonhacks to install opencv on the Jetson TX2, but everytime it came to the building step and results an error:

Configuring incomplete, errors occurred!

Here is the CMakeOutput.log: https://drive.google.com/open?id=1A83Vr-JSeRnm9qIDc8E2UxTaUwMLHDo_

And the CMakeError.log: https://drive.google.com/open?id=1B_e3ObmdhekUNOlFSQ-q45lrmL86dXa5

Thanks in advance

Hi,
On r32.3.1, it is OpenCV4.1.1 with WITH_GSTREAMER=ON after SDKManager installation. If you need CUDA functions, please try re-install through the script:
https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.1.1_Jetson.sh