Install the dependencies
sudo apt-get install libqt5sensors5-dev libqt5svg5-private-dev qt5-default libsdl-image1.2-dev libdevil-dev libglc-dev freeglut3-dev libxmu-dev libfribidi-dev libglc-dev freeglut3-dev libgl1-mesa-devClone the Navit Git repo
Clone the Navit Repo.
git clone https://github.com/navit-gps/navit
Compile
cd navit cmake . make -j10