Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Installing glfw on Ubuntu 16.04

  1. #1
    Newbie Newbie
    Join Date
    Oct 2017

    Installing glfw on Ubuntu 16.04


    I'm very new to opengl. I found this nice tutorial:

    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

  2. #2
    Newbie Newbie
    Join Date
    Oct 2017


  3. #3
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004

    • Run your package manager (LINK),
    • Tag the packages for glfw development (probably libglfw3 and libglfw3-dev) (LINK), and
    • Click OK to install them.

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

  4. #4
    Intern Newbie
    Join Date
    May 2014
    I believe the following concrete command would be more helpful for a beginner:
    sudo apt-get install libglfw3-dev libglfw3
    It 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts