Home » Community » Forums » OpenGL » installing glut
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 installing glut
Post New Topic  Post Reply 
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.

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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.

 User Rating: 1033   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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.

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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


Captain Courgette, eat more veg


 User Rating: 1283   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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 <gl\glut.h> or #include <GL/glut.h>

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

Thanks for the help!

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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 <gl\glut.h> or #include <GL/glut.h>

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 <gl/glut.h> works is its in the compilers paths for headers and you use <> to reference to those directories.... HTH



 User Rating: 1262   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: