View Full Version : Installing glfw on Ubuntu 16.04

10-22-2017, 06:51 AM

I'm very new to opengl. I found this nice tutorial: https://www.youtube.com/watch?v=OR4fNpBjmq8

This video talks about how to install glfw on windows. He says what he's doing is going to be cross platform. I want to follow along in my Ubuntu 16.04 but I'm having trouble setting up my environment. I can't find a simple guide with simple steps. I don't know much about cmake nor clang. I know a little about g++.

Actually the main problem might be that I'm also very new to c++. I'm planning to give some time to c++ but I can't do that now. I have to work with opengl. Can someone give me a simple step by step guide for 16.04 of just what I need to install and how to compile?

I have an nvidia GTX770 card and I'm using nvidia drivers. What other information do I need to provide? Thx :D

10-26-2017, 11:42 AM

anyone? :dejection:

Dark Photon
10-26-2017, 04:12 PM

Run your package manager (LINK (https://help.ubuntu.com/lts/serverguide/package-management.html)),
Tag the packages for glfw development (probably libglfw3 and libglfw3-dev) (LINK (https://packages.ubuntu.com/search?keywords=glfw&searchon=names&suite=zesty&section=all)), and
Click OK to install them.

Now you're ready to compile and link programs which use GLFW.

01-06-2018, 06:54 AM
I believe the following concrete command would be more helpful for a beginner:

sudo apt-get install libglfw3-dev libglfw3It is highly likely that the asker would need gl3w, and then s/he doesn't know the linking flags ... but that's a new question.