Skip to content

Instantly share code, notes, and snippets.

@naranyala
Created July 20, 2025 04:23
Show Gist options
  • Select an option

  • Save naranyala/10b651119782285997445345884ff9d8 to your computer and use it in GitHub Desktop.

Select an option

Save naranyala/10b651119782285997445345884ff9d8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euo pipefail
### 🧠 What This Covers
# | Library | Purpose |
# |-------------|---------------------------------------|
# | `mesa-utils`| Tools like `glxinfo`, `glxgears` |
# | `GL`, `GLU` | Core OpenGL and utility functions |
# | `GLUT` | Legacy windowing/input toolkit |
# | `GLEW` | Extension wrangler for OpenGL |
# | `GLFW` | Modern window/context/input toolkit |
# | `GLM` | Header-only math library (like GLSL) |
# | `SDL2` | Cross-platform media/input/audio |
echo "🚀 Installing OpenGL development stack..."
sudo apt update
# Core OpenGL and GLU
sudo apt install -y \
libgl1-mesa-dev \
libglu1-mesa-dev \
mesa-utils
# GLUT and GLEW
sudo apt install -y \
freeglut3-dev \
libglew-dev
# GLFW and GLM (modern OpenGL)
sudo apt install -y \
libglfw3-dev \
libglm-dev
# Optional: Audio and media support
sudo apt install -y \
libao-dev \
libmpg123-dev
# Optional: SDL2 stack
sudo apt install -y \
libsdl2-dev \
libsdl2-image-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev
echo "✅ OpenGL goodies installed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment