1 下载
(1)CMake
我下载的版本是cmake-3.4.0-rc1-win32-86.exe。
(2)FreeGLUT
我下载的版本是Freeglut 3.0.0[Released: 7 March 2015]。
(3)GLEW(OpenGL Extension Wrangler)
我下载的版本是glew-1.13.0.zip。
可以找官网或者在优快云上搜索下载。
2 编译FreeGLUT
CMake使用指南:
Download CMake (http://www.cmake.org/cmake/resources/software.html).
Get one of the releases from the binary distribution section.
Run the CMake installer, install wherever you like.
Launch CMake via Start > Program Files > CMake 2.8 > CMake (GUI)
(note that the shortcut put by the installer on your desktop does NOT point to the CMake GUI program!)
In the “Where is the source code” box, type or browse to the root directory of your freeglut source (so that’s /freeglut, not
/freeglut/src).
In the “Where to build the binaries” box, type or browse to any
f

这篇博客介绍了如何下载和编译freeglut及GLEW的源代码,通过CMake生成Visual Studio解决方案,并详细阐述了编译过程,包括设置配置选项、生成库文件及搬运头文件和库文件到相应目录,以便于后续的开发使用。同时,还提供了一个简单的测试代码来验证编译配置是否成功。
最低0.47元/天 解锁文章
5879

被折叠的 条评论
为什么被折叠?



