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 Bloodshed Dev-C++ and the GLUT Libraries

Bloodshed Dev-C++ is a free C++ compiler and development environment for Windows operating systems. ...

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...

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
  • 1982

How to install ASP.NET 1.1 with IIS7 on Vista and Windows 2008

OverviewYou can use the Web Platform Installer (Web PI) to easily install IIS, and applications that...

How to install a patch on clusterware 11.2.0.1 into grid infrastructure home

        When applying a needed patch to the Grid Infrastructure Home for ASM or CRS the opatch utili...

How to install a patch on clusterware 11.2.0.1 into grid infrastructure home

When applying a needed patch to the Grid Infrastructure Home for ASM or CRS the opatch utility may e...

How to Create the CAPL DLL and integrated it into CANOE

Open CAPL DLL Demo project with visual studio Location: C:\Users\Public\Documents\Vector\CANoe\8.5(...

How to integrate Struts2 into Web Application and small sample//TODO Verify!!!

Maven: struts2的Login Sample  第一步,使用eclipse新建一个maven webapp工程,如下图所示:   点击next,选择webapp工程,然后...

How to Install Nvidia Kernel Module Cuda and Pyrit in Kali Linux

Install Nvidia Kernel Module Cuda and Pyrit in Kali Linux UPDATE: 13/03/2014 – Readers should fol...

elasticsearch install and how to use javaapi

原文链接:http://blog.csdn.net/hfmbook/article/details/51881678 Elasticsearch 基本安装 标签(空格分隔): Elasti...
  • luckgl
  • luckgl
  • 2016年11月18日 18:48
  • 403
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:How to install the glut libraries and dll's into windows
举报原因:
原因补充:

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