On Ubuntu 22.04 (Jammy Jellyfish) xorg-dev and mesa-common-dev depend on libdrm-dev which is unavailable. Instead, installing libxcursor-dev and libxinerama-dev directly worked for me.

Samie Bencherif
2023-06-04 00:54:45 -04:00
parent 6abfc4ac1b
commit efdfadfe35

@ -17,7 +17,7 @@ Optionally, you could use **CMake** building system.
You need to install some required libraries; **ALSA** for audio, **Mesa** for OpenGL accelerated graphics and **X11** for windowing system.
##### Ubuntu
sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
##### Fedora
sudo dnf install alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel libatomic