Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 433 Bytes

openglsetup.md

File metadata and controls

15 lines (10 loc) · 433 Bytes

Setting up OpenGL on LINUX


Simple steps to setup and execute OpenGL code on Ubuntu-based operating systems (Ubuntu, Linux Mint, Zorin OS, Pop_OS!, etc.)

Installing GLUT (OpenGL Utility Toolkit)

sudo apt-get install freeglut3-dev

Compiling and running C program

Complie:

gcc filename.c -lGL -lGLU -lglut -lm -o outputfilename

Execute:

./outputfilename