Install opencv on TX2

I used those code try to install opencv on my TX2
git clone GitHub - jetsonhacks/buildOpenCVTX2: Build and install OpenCV for the NVIDIA Jetson TX2
cd buildOpenCVTX2
./buildOpenCV.sh

But it was said: line 141: cmake: command not found.

Does anyone know what wrong with it? My device just re-fresh with jetpack 4.2.

Thanks!

Hi wsrh2009,

You probably don’t have cmake installed. You could try the following command to install it:

sudo apt-get install build-essential cmake

Regards,