Cannot find -lglfw


#1

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.


#2

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: https://centos.pkgs.org/7/epel-x86_64/glfw-devel-3.2.1-2.el7.x86_64.rpm.html


#3

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