First post. I’ve spent the afternoon trying to correctly install and configure GLFW on my Ubuntu laptop. I’m almost there but I’m missing the final piece to the puzzle. Here’s what I’ve done so far:
I downloaded and extracted glfw-3.3.2.zip to ~/Projects/glfw-3.3.2/
sudo apt-get install cmake xorg-dev mkdir ~/Projects/glfw-build cd ~/Projects/glfw-build cmake ../glfw-3.3.2 make sudo make install
So far, so good.
Now, when I try and compile and link the example program at:
I get errors related to glad/gl.h and linmath.h - they can’t be found.
Now, these files (and others) are part of the source package and can be found at:
I’ve trawled through the documentation and CMake files but I can find no clue as to how to correctly install these files. I don’t want to kludge it and just copy them to /usr/local/include - that might work but as the deps folder includes other files, including .c files, I feel sure there’s a “correct” way to proceed. But I can’t find it.
Maybe I’m just supposed to copy the entire deps folder into the root directory of each of my projects. That would work. But it doesn’t feel right.
What am I missing?