Skip to main content
GameDev.net gamedev.net
🔒 Locked

installing glut

Started by red-dragonX Sep 3, 2006 at 10:38 PM 4 replies 3.2k views
Original Post
red-dragonX
red-dragonX
hey guys, Yeah, it's me again. I wanted to install "aux.h" but remembered the professor mentioning to use glut. So, now I've moved onto that. I download and extracted the glut-3.7.6-source and glut-3.7.6-bin. I've read the README file which states: COMPILING/INSTALLATION: To build the glut dll: First, open Microsoft Developer Studio. Then, select File -> Open Workspace and find the glut.dsw file in the file dialog and double-click on it. Finally, select Build -> Build glut32.dll. When the build is finished, it will copy: glut32.dll to %WinDir%\System, glut32.lib to $(MSDevDir)\..\..\VC98\lib, and glut.h to $(MSDevDir)\..\..\VC98\include\GL. Okay, so I have the MSVS2005. I opened the workspace for msvc 6.0; 2005 asked me to update it or what not, I said yes. Then, under build, I see 'Build glut32', NOT 'Built glut32.dll'. When I build glut32, it compiles, shows some warnings, and then here's the main error message:

Generating Code...
Compiling resources...
Compiling manifest to resources...
Linking...
.\glut.def(1) : warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored
   Creating library .\Debug/glut32.lib and object .\Debug/glut32.exp
Embedding manifest...
Copying libraries, headers & dll's...
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the path specified.
        0 file(s) copied.
Project : error PRJ0019: A tool returned an error code from "Copying libraries, headers & dll's..."
Build log was saved at ....
glut32 - 1 error(s), 15 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I'm sure I'm doing something silly, I just want to get going with this. ANY help is appreciated.
sled
sled
You don't need to compile it. Just use the header file and the dll from glut-3.7.6-bin. All you need to do is add:
#include "glut.h"
to the top of your project.
red-dragonX
red-dragonX
Quote:
Original post by sled
You don't need to compile it. Just use the header file and the dll from glut-3.7.6-bin. All you need to do is add:
#include "glut.h"
to the top of your project.


Okay, call me dense, but when you say 'use' the header file and dll, what do you mean?

I just included glut.h in a project file and it couldn't find it.
zedzeek
zedzeek
look in the vc directory, there will be a few dirs in there eg bin, one is called include, u need to copy the glut stuff into a subdir of that called GL
ie /VC/include/GL/.. (glut header *.h files go here, as well as gl.h glext.h etc)
u will need to do the same with the libs but they go in
/VC/lib/..
red-dragonX
red-dragonX
Quote:
Original post by zedzeek
look in the vc directory, there will be a few dirs in there eg bin, one is called include, u need to copy the glut stuff into a subdir of that called GL
ie /VC/include/GL/.. (glut header *.h files go here, as well as gl.h glext.h etc)
u will need to do the same with the libs but they go in
/VC/lib/..


hey zedzeek,
thanks for the instructions. I did a search online and found instructions along your lines; remember to copy the glut32.dll to C:\WINDOWS\SYSTEM32 for winxp.

anyway, now it doesn't complain about the glut.h. Of course, I had to add it like this (either way):
#include or #include

Doing just #include "glut.h" won't work.

Thanks for the help!
MARS_999
MARS_999
Quote:
Original post by red-dragonX
Quote:
Original post by zedzeek
look in the vc directory, there will be a few dirs in there eg bin, one is called include, u need to copy the glut stuff into a subdir of that called GL
ie /VC/include/GL/.. (glut header *.h files go here, as well as gl.h glext.h etc)
u will need to do the same with the libs but they go in
/VC/lib/..


hey zedzeek,
thanks for the instructions. I did a search online and found instructions along your lines; remember to copy the glut32.dll to C:\WINDOWS\SYSTEM32 for winxp.

anyway, now it doesn't complain about the glut.h. Of course, I had to add it like this (either way):
#include or #include

Doing just #include "glut.h" won't work.

Thanks for the help!


Doing just #include "glut.h" won't work. And the reason is you didn't have the glut.h file in your working directory. And the reason why works is its in the compilers paths for headers and you use <> to reference to those directories.... HTH

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.