|
||||||||||||||||||
Add Forum to Favorites | Send Topic To a Friend | View Forum FAQ | Track this topic |
Last Thread Next Thread ![]() |
| installing glut |
|
![]() red-dragonX Member since: 11/1/2003 From: USA |
||||
|
|
||||
| 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 Member since: 7/15/2004 |
||||
|
|
||||
| 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 Member since: 11/1/2003 From: USA |
||||
|
|
||||
Quote: 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 Member since: 7/8/2000 From: nelson, New Zealand |
||||
|
|
||||
| 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 |
||||
|
||||
![]() red-dragonX Member since: 11/1/2003 From: USA |
||||
|
|
||||
Quote: 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! |
||||
|
||||
![]() MARS_999 GDNet+ Member since: 3/6/2001 From: Sioux Falls, SD, United States |
||||
|
|
||||
Quote: 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 |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|