下载glew,通过Github下载源代码后,在终端进入glew目录,并在终端下依次执行如下命令即可。
make extensions
sudo make install
这样在系统目录/usr/local/include和/usr/local/lib下会生成GLEW的相关头文件与静态库文件。
下载CMake https://cmake.org/download/
下载GLFW,首先在github上clone下GLFW的源代码,然后在glfw目录下新建一个build文件夹,然后打开CMake如下图:
在where is the source code 和where to build the binaries中分别选择glfw文件夹和build文件夹。
点击 Configure 按钮,选择