0% found this document useful (0 votes)
120 views

How To Install Glut File

The document provides instructions for installing GLUT (OpenGL Utility Toolkit) on different platforms: - GLUT files can be downloaded from a specific URL and the zip file contains DLL, LIB, and header files needed for Visual Studio on Windows. - For Dev-C++ on Windows, GLUT packages can be installed via the package updater or files extracted and libraries added to the system PATH. - On Mac OS X, installing developer tools will also install the OpenGL and GLUT frameworks. - On Linux with GCC, GLUT header and library locations may need to be specified and glut added as a link library.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views

How To Install Glut File

The document provides instructions for installing GLUT (OpenGL Utility Toolkit) on different platforms: - GLUT files can be downloaded from a specific URL and the zip file contains DLL, LIB, and header files needed for Visual Studio on Windows. - For Dev-C++ on Windows, GLUT packages can be installed via the package updater or files extracted and libraries added to the system PATH. - On Mac OS X, installing developer tools will also install the OpenGL and GLUT frameworks. - On Linux with GCC, GLUT header and library locations may need to be specified and glut added as a link library.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

**************** GLUT Installation **************** GLUT files can be found at http://www.xmission.com/~nate/glut.

html **************** GLUT under Visual Studio (Windows) **************** You need OpenGL, GLU, and GLUT. Luckily the OpenGL and GLU libraries come with W98/NT/2K/XP, so all you need is to install GLUT . GLUT files can be found at http://www.xmission.com/~nate/glut.html The zip file contains dll, lib, and the header files you need. After unzipping them put them as follows (for Visual Studio 9): glut32.dll in C:\WINDOWS\SYSTEM32 (WXP) glut32.lib in C:\Program Files\Microsoft Visual Studio 9\VC\lib glut.h in C:\Program Files\Microsoft Visual Studio 9\VC\include\GL Note: depending upon the version of Visual Studio you are using the above directories may have a slightly different name. **************** GLUT under Dev-C++ (Windows) **************** There are two ways as far as I know: 1. install Dev-C++ 2. use its package updater and grab the 'glut' package 3. add Dev-C++'s \bin directory to your system PATH 4. compile with: gcc <sourcefile> -lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32 And of course you can directly use Dev-C++ to compile your GLUT files instead of the command prompt. alternatively... You can use MinGW. Don't forget to add its \bin directory to your system PATH so you can invoke the compiler anywhere in your system, just like in the first method above. Before you can compile GLUT, you will need to put the relevant files into MinGW's directories. Put the GLUT files, found at http://www.xmission.com/~nate/glut.html in the following locations: glut.h --> <yourMinGW>\include\GL glut32.lib --> <yourMinGW>\lib glut32.dll --> <yourWindows>\system or \system32 You will also need to delete libglut32.a included by MinGW in it's \lib directory as it is outdated and incompatible with the the GLUT package. If you dont delete the file it will be used in preference to glut32.lib and you will get compilation errors. In your source files, add #include <windows.h> before #include <glut.h> ***************************** GLUT under Mac OS X ************************ If you install the Developer Tools (compilers etc) that came on the CD with your Mac, it will install the OpenGL and GLUT frameworks.

***************************** GLUT under Linux/gcc ************************ Depending upon which variant you have installed, getting glut to work has been known to be as simple as follows, e.g. for getting lab1 demo to work - Change the location of the glut headers in main.c: #include "/usr/include/GL/glut.h" - and then compiled with: gcc -lglut Main.c Timer.c

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy