Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: Kirl on March 18, 2012

Title: problems installing openGL
Post by: Kirl on March 18, 2012
I installed openGL acording to instructions from a book, but when I try to run the first (downloaded) example program I get an alert saying:

"Program can't start because glut32.dll is missing"

However glut32.dll is right where the book says it should be (Windows\System32). I'm thinking it might have something to do with the fact that I don't save my projects in the default VC++ projects folder?

The only difference from the book instructions is that I put the glut.h header file into C:\Program Files(x86)\... instead of  C:\Program Files\...
Title: Re: problems installing openGL (Solved)
Post by: Kirl on March 18, 2012
Solved it by copying glut32 to Windows\System instead of Windows\System32...

Seems weird to me because of the suffix 32 and because there were no other dll's in that folder, but at least the example runs now...
Title: Re: problems installing openGL
Post by: LittleWhite on March 18, 2012
Title: Re: problems installing openGL
Post by: Kirl on March 18, 2012
Thanks for the heads up littleWhite, where do you suggest I put the dlls?

This folder drudgery is pretty terrible. It's the same problem when exporting 3d scenes with textures and my friend was having similar problems with his audio samples recently. It's in need of a revolutionairy update of some sort...
Title: Re: problems installing openGL
Post by: Jim on March 18, 2012
glut32.dll should be in the folder with your exe.  Basically, noone else will have it in their Windows folders (because only Microsoft dlls should live there) and if you distribute your app other people will need a copy.

Quote
It's in need of a revolutionairy update of some sort...
Microsoft's answer to this in .Net land is 'manifests' and the GAC.

Jim
Title: Re: problems installing openGL
Post by: Kirl on March 19, 2012
I see, thanks.

When I say revolutionairy I mean something that would solve all folder problems across the board, not just for programming specifically. Meaby the cloud will save us from folder hell... :-\

Title: Re: problems installing openGL
Post by: Canopy on March 22, 2012
good old DLL hell!

M$ has flip flopped on their policy from saying "bung it in system32" to, "keep it with the app"..

right now i believe its "keep it with the app" as that lessens cross app compatibility issues.

but they have added side by side.. which can make things even worse far from revolutionary