The last three libraries are needed on Ubuntu 14.04.1. lglfw3 -lGL -lm -lXrandr -lXi -lX11 -lXxf86vm -lpthread To make a GLFW application on the command line, use the following linker options:.If you want to include glu.h automatically, set the You don't need to include gl.h as it is already included in glfw3.h.įor an example, see the provided sample source code. In your OpenGL source files, include the following line:.Unzip the source file and change your working directory to the glfw-3.0.4 directory. At the time of writing, the GLFW package one gets with apt-get is version 2.7 whereas we're using version 3.0.4.
Sudo apt-get install cmake xorg-dev libglu1-mesa-dev First install GLFW's dependencies, including OpenGL/Mesa:.Version: Ubuntu 14.04.1 LTS (Trusty Tahr), 12.04.5 LTS (Precise Pangolin) Search path, and link with libraries such as glew, expat, jpeg, and To find out how to specify command line options, add to header file You can also try out someĮxamples with buffer objects and shaders.įor instructions on how to build GLUT programs, please refer to the course Sample code: the sample Makefile and sourceĬode build a simple line drawing application and runs on Linux,