OpenGL配置,GLUT64位和glut32位 安全免费下载方法
64bit实践成功步骤:
1下载 Cg 3.1 Toolkit :https://developer.nvidia.com/cg-toolkit
如果只使用32bit的 可以直接下载https://user.xmission.com/~nate/glut.html 实测安全 glut-3.7.6-bin.zip 跳至步骤4
2 安装,一定要选64位,如果你需要使用64位的GLUT
3 拷贝文件
如果是64bit 需要进行重命名。
C:\Program Files (x86)\NVIDIA Corporation\Cg\bin.x64 中的 glut32.dll 重命名为glut64.dll
C:\Program Files (x86)\NVIDIA Corporation\Cg\lib.x64 中的 glut32.lib 重命名为glut64.lib
C:\Program Files (x86)\NVIDIA Corporation\Cg\include\GL 中的 glut.h 不需要重命名
4 将文件夹内 glut.h 放在 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ 下;
将 .\Release\glut64.lib 放在 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\ 下;
将 .\Release\glut64.dll 放在 C:\Windows\System32 下。
32位同理
5 Install GLEW (if your graphics card supports at least OpenGL 1.5):
- Download glext.h from http://www.opengl.org/registry/api/glext.h to C:\Program Files\Microsoft Visual Studio10.0\VC\include\GL.
- Download and unzip the file glew-1.5.4-win32.zip from http://glew.sourceforge.net/ .
(a) Copy glew32.dll from the bin directory to C:\Windows\System32.
(b) Copy glew32.lib and glew32s.lib from the lib directory to C:\Program Files\Microsoft Visual Studio 10.0 \VC\lib
(c) Copy glew.h, glxew.h and wglew.h from the include\GL directory to C:\Program Files\Microsoft Visual Studio
10.0\VC\include\GL
6 python 运行情况
此方法出自密歇根州立,原文地址:http://web.eecs.umich.edu/~sugih/courses/eecs487/glut-howto/
原文教程摘录
Nvidia's Cg toolkit. If you want 64-bit GLUT, during installation, be sure to click the option to install 64-bit files. You can ignore the installer's complaint of your DirectX not set up properly. We only need its glut files. Once Cg is installed, the GLUT files will be inC:\Program Files (x86)\NVIDIA Corporation\Cg folder. You can then distribute the GLUT files as follows:
- header file:
C:\Program Files (x86)\Microsoft Visual Studio *\VC\include\GL\glut.h
The '*' matches your version of VS: 12.0 for VS2013, 11.0 for VS2012, 10.0 for VS2010, 9.0 for VS2008. You may have to create theincludefolder.- On earlier versions without a VC folder, try instead:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\GL\glut.h
- On earlier versions without a VC folder, try instead:
- library file:
C:\Program Files (x86)\Microsoft Visual Studio *\VC\lib\glut32.lib-
If you don't have a VC folder, try instead:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\glut32.lib
C:\Program Files (x86)\Microsoft Visual Studio *\VC\lib\amd64\glut32.lib -
If you don't have a VC folder, try instead:
- runtime, dynamically-linked (dll), shared library:
C:\Program Files (x86)\Microsoft Visual Studio *\VC\bin\glut32.dll- If you don't have a VC folder, try instead:
C:\Windows\system\glut32.dll
C:\Program Files (x86)\Microsoft Visual Studio *\VC\bin\amd64\glut32.dll - If you don't have a VC folder, try instead:
python上openGL配置和测试程序https://www.cnblogs.com/lclblack/p/6378212.html