Sudo install OpenGL & SDL on Ubuntu
A quick and easy way would be to type the following in one line with single spaces in the Terminal.
This way of installing OpenGL and SDL libraries only applies to Ubuntu.
I needed these when setting up a C++ game dev environment on a fresh Ubuntu install. Without these packages, any project using OpenGL for rendering or SDL for input/audio will fail to compile with missing header errors. The package names can vary slightly between Ubuntu versions, so if libglew1.4-dev isn’t found, try searching with apt-cache search libglew to find the current version available in your repos.
sudo apt-get install
nvidia-glx-new-dev
libglew1.4-dev
libsdl1.2-dev
libsdl-ttf2.0-dev
libsdl-image1.2-dev
libsdl-mixer1.2-dev