Skip to content

Install the latest CMake version (MANDATORY only for Ubuntu 20.04)

Info

This procedure should be performed after the JetPack installation has been completed.

The latest YARP v3.10.0 requires CMake >= 3.19, but Ubuntu 20.04 only provides CMake 3.16, so it needs to be upgraded.

To download the latest version, first remove CMake with:

sudo apt purge --auto-remove cmake

Get a copy of the signing key:

wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null

Add the repository:

sudo apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"

Update the repo index and install CMake:

sudo apt update
sudo apt install cmake