Ubuntu 20 pre-requisites:
sudo apt install build-essential cmake automake autotools-dev libtool pkg-config libfreetype-dev ffmpeg libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavresample-dev libavutil-dev libheif-dev libdcmtk-dev xmlto ninja-build xrandr-dev xorg-dev ssl-dev libffi-dev libglu1-mesa-dev libosmesa6-dev freeglut3-dev libxcb-icccm4 libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev libxkbcommon-x11-dev libxcb-xinput0 libxcb-xkb1l libxcb-screensaver0 libxcb-util0 libxcb-image0 libxcb-cursor0 libxcb-xinerama0 libffi-dev libgl1-mesa-dev ninja-build libxxf86vm-dev libxcb-cursor-dev libxcursor-dev libxinerama-dev libxi-dev libglu1-mesa-dev python3-dev ninja-build
Ubuntu 22 pre-requisites:
sudo apt install build-essential cmake automake autotools-dev libtool pkg-config libfreetype-dev ffmpeg libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libheif-dev libdcmtk-dev xmlto ninja-build xorg-dev libssl-dev libffi-dev libglu1-mesa-dev libosmesa6-dev freeglut3-dev libxcb-icccm4 libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev libxkbcommon-x11-dev libxcb-xinput0 libxcb-xkb-dev libxcb-screensaver0 libxcb-util-dev libxcb-image0 libxcb-cursor0 libxcb-xinerama0 libffi-dev libgl1-mesa-dev ninja-build libxxf86vm-dev libxcb-cursor-dev libxcursor-dev libxinerama-dev libxi-dev libglu1-mesa-dev python3-dev libxrandr-dev ninja-build