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 运行情况

OpenGL配置glut64位和glut32位,英伟达 安全 下载地址 免费

此方法出自密歇根州立,原文地址: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 the include folder.

    On earlier versions without a VC folder, try instead:
    C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\GL\glut.h

  • 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

    To build 64-bit apps, put the 64-bit library file in:
    C:\Program Files (x86)\Microsoft Visual Studio *\VC\lib\amd64\glut32.lib

  • 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

    To build 64-bit apps, put the 64-bit runtime, dynamically-linked (dll), shared library file in:
    C:\Program Files (x86)\Microsoft Visual Studio *\VC\bin\amd64\glut32.dll

python上openGL配置和测试程序https://www.cnblogs.com/lclblack/p/6378212.html

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2021-08-29
  • 2021-10-22
  • 2022-12-23
  • 2021-12-17
  • 2021-07-08
  • 2021-06-28
猜你喜欢
  • 2021-09-30
  • 2021-09-22
  • 2022-12-23
  • 2021-08-19
  • 2022-02-24
  • 2021-07-31
  • 2021-12-28
相关资源
相似解决方案