How to install the glut libraries and dll's into windows

转载 2005年04月26日 21:46:00
How to install the glut libraries and dll's into windows

With thanks to Kamil Saykali of the EdCenter:

This part will show how to install the glut libraries and dll's (to download it go to http://reality.sgi.com/opengl/glut3/glut3.html )

1. After you have downloaded the glut.zip file (you should get the latest ver 3.7) unzip it into a folder

2. Inside the folder you should have:

glut.dll

glut32.dll

glut.h

glut.lib

glut32.lib

3. Copy both glut.dll and glut32.dll into your windows directory (windows or winnt, depends on if you are using Windows95/98 or Windows NT)

4. Copy your glut.h to:

<drive>:/<VC++ path>/include/GL/glut.h

*** put the drive where you installed VC++ instead of the <drive> ***

*** put the directory where you installed VC++ instead of the <VC++ path>

5. Copy your glut.lib and glut32.lib to:

<drive>:/<VC++ path>/lib/glut.lib

<drive>:/<VC++ path>/lib/glut32.lib

*** put the drive where you installed VC++ instead of the <drive> ***

*** put the directory where you installed VC++ instead of the <VC++ path>

6. That should be it for installed the glut libraries. The rest of this letter shows you how to setup VC++ so that you can use the glut libraries.

This will show you how to start up an opengl project and setup the setting so that you will be able to compile and run the program. This is assuming that you have already downloaded the appropriate files and installed them in the directories that there documentation tell you to. If you have not done that you need to do it before you can run or write an opengl program.

1. Start VC++ and create a new project.

2. The project has to be a "Win32 Console Application"

3. Type in the name of the project and where it will be on your hard drive.

4. Chose an empty project and click next or finish

5. First thing you need to do when the project opens up is to click on the "Project" menu item from the top.

6. Chose "Settings" (a window will come up)

7. On the left side of the window there are tabs, chose the "Link" tab

8. The string field labeled "Object/library modules" has a few lib files already set in it

9. Go to the end of this string field and enter:

opengl32.lib glut32.lib glu32.lib

10. Chose "OK" and that will include all the opengl libraries that you need

11. Now all you need to do is include <gl/glut.h> and you are ready to go

[转] How to install the glut libraries and dll's into windows

How to install the glut libraries and dlls into windowsWith thanks to Kamil Saykali of the EdCenter:...
  • gamefish
  • gamefish
  • 2005年07月03日 11:38
  • 962

How to Install Bloodshed Dev-C++ and the GLUT Libraries

Bloodshed Dev-C++ is a free C++ compiler and development environment for Windows operating systems. ...
  • delphi308
  • delphi308
  • 2011年01月04日 19:58
  • 1446

How to install the C++ Boost Libraries on Windows

Boost is a set of high-quality libraries that speed up C++ development. They are included in most li...
  • lcj_cjfykx
  • lcj_cjfykx
  • 2014年07月15日 12:58
  • 675

How to Install Dev-C++ and the GLUT Libraries for Compiling OpenGL Programs with ANSI C

How to Install Dev-C++ and the GLUT Libraries for Compiling OpenGL Programs with ANSI C (versio...
  • ce_endless
  • ce_endless
  • 2012年04月17日 11:39
  • 1109

How to Install VirtualBox and Windows on your Mac

http://blogs.miis.edu/kb/2012/06/19/how-to-install-virtualbox-and-windows-on-your-mac/  H...
  • kevinew
  • kevinew
  • 2013年07月12日 15:34
  • 2098

How To Compile GLUT on Windows

Please read the directions all the way through before you start. Install MS Visual C++ . After i...
  • u011558856
  • u011558856
  • 2013年10月03日 14:35
  • 551

windows下安装opengl的glut库

GLUT不是OpenGL所必须的,但它会给我们的学习带来一定的方便,推荐安装。 Windows环境下的GLUT下载地址:(大小约为150k) http://www.opengl.org/resourc...
  • popkiler
  • popkiler
  • 2007年08月22日 13:45
  • 17188

Ubuntu14.04 GLUT的安装

第一步更新源,最好换成国内的一些源,开始因为一些原因,始终安装不成功,换了源以后问题一下就解决了。换源教程,来自百度经验.我用的网易和阿里云,速度还不错。ubuntu14.04下安装opengl教程:...
  • abclixu123
  • abclixu123
  • 2015年06月20日 09:09
  • 9671

安装php7提示 configure: error: Cannot find OpenSSL's libraries 解决方案

一次在安装php7其中提示错误信息 configure: error: Cannot find OpenSSL’s libraries 出现这种有2中情况,一种是没有安装 openssl,另一种是...
  • u010415258
  • u010415258
  • 2017年11月28日 16:25
  • 429

windowns下qt5.2.0(mingw)安装glut(opengl)工具包

1.下载glut工具包 Windows环境下的GLUT下载地址:(大小约为150k) http://www.opengl.org/resources/libraries/glut/glutdlls...
  • u010655122
  • u010655122
  • 2014年07月24日 22:35
  • 1528
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:How to install the glut libraries and dll's into windows
举报原因:
原因补充:

(最多只允许输入30个字)