install GLFW & GLEW on Ubuntu 22.04 GNU+Linux
glfw glew linux install opengl
opengl linux
glfw glew linux
What's shown in this tutorial works on other Ubuntu based GNU OS distributions like Linux Mint , Pop!_OS , ZorinOS
video made in 2022
sudo apt install build-essential cmake xorg-dev
[ Ссылка ]
cmake -G "Unix Makefiles"
make
sudo make install
sudo apt-get install libx11-dev libglu1-mesa-dev freeglut3-dev libglew2.2 libglew-dev libglu1-mesa libgl1-mesa-glx libgl1-mesa-dev libglfw3-dev libglfw3
compile your program:
gcc Source.c -o myprogram.elf -Wall -lGL -lGLU -lglut -lGLEW -lglfw -lX11 -lXxf86vm -lXrandr -lpthread -lXi -ldl -lXinerama -lXcursor
g++ Source.cpp -o my.elf -std=c++11 -Wall -lGL -lGLU -lglut -lGLEW -lglfw -lX11 -lXxf86vm -lXrandr -lpthread -lXi -ldl -lXinerama -lXcursor
![](https://s2.save4k.ru/pic/xk5Kw6frDG4/maxresdefault.jpg)