GLFW GLEW GNU+Linux install OpenGL on Ubuntu 22.04
ฝัง
- เผยแพร่เมื่อ 11 ก.ย. 2022
- 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
www.glfw.org/download.html
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 - วิทยาศาสตร์และเทคโนโลยี
It surprises me that people care about Linux users, thank you a lot
Thx a lot. After spending hours and getting crazy you saved my day.
thank you! worked for me, btw you sound like a league content creator xPetu lol
beautiful, just what I needed!
Love you bro
thanx man, needed this stuff for my practical exams
It worked!
why cant you put the steps in the description i think it be alot more easier and quicker for us
It works for me!! Thank you!!
Brother i have old pc and here opengl not supported what to dp
🎉
ty :3
Hi, do I need to compile the "-std=c++11" in order to work?
I actually don't know, I always use it. To make sure that everything works I showed the exact way I do things in this video whether it's necessary or not.
My knowledge on this OpenGL topic is barely enough to have made this video. Which is why I made it so that if others are struggling to get this working this video may help. But this as far as my help goes here.
@@awuuwa Anyway I tried without at it compiles with no problem. Thanks again for the video! It was really helpful.
Thanks
ty, papu me salvaste la tarea :v
:)