I am trying to compile this example https://learnopengl.com/Getting-started/Hello-Window:
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// ...
I have installed libglfw3-dev
but I am still missing the glad.h
header file. A search on packages.ubuntu.com gave no results. There is a github page for glad
but it does not provide glad.h
as far as I can see.
Thanks to @dc37 for the comment on the webservice! Here is what I did: Go to the webservice and download the required files:
Check the "local files" option and click on the "Generate" button in the lower right corner,
download the
glad.zip
file to the current directory and extract it.Create a test program
test.cpp
:Compile it (remember to install
libglfw3-dev
first):Run it:
(It shows an empty window on the screen)