I had the same problem on Ubuntu 18.04. Installation of libglfw3 and libglfw3-dev solved it.
apt-get install libglfw3
apt-get install libglfw3-dev
I tried to install glfw3 from source first and then install it with brew(as @PanchaGil mentioned above) but it didn't work out for some reason.