Cannot find -lglfw

I used glfw in CentOS 6 ,but when i make ,it told me this error : cannot find -lglfw.
But where is this lib?I can’t find it.

You can get GLFW from it’s website or install using your OSs package manager.

A quick search for ‘CentOS rpm glfw’ found several results, for example:

1 Like

careful, cause the library names might be different, try installing glfw3 lib if you don’t have it
type this in the terminal : sudo apt-get install libglfw3
if you can’t find it, compile it from source, or download the pre-compiled files, I will upload the pre-compiled files for 32bits and 64bits for Linux on this forum as a static library, but you need to install the needed deps