The installation procedures for Mac and Linux are essentially identical using the command-line interface. To simplify the process, we recommend that you use MacPorts for Mac users.
We assume that you have successfully installed the basic development tools, including CMake, as described in the earlier section. For maximum flexibility, we can compile the library directly from the source code (refer to http://www.glfw.org/docs/latest/compile.html and http://www.glfw.org/download.html).
For Mac users, enter the following command in a terminal to install GLFW using MacPorts:
sudo port install glfw
For Linux users (or Mac users who would like to practice using the command-line ...