Narusaki
Narusaki

Reputation: 97

"missing glut32.dll" with OpenGL under VS2010

I'm using OpenGL under VS2010 doing a program for a long time. The program can always run independtly(I mean not run from vs2010 but double click out side of the IDE) until now. "missing glut32.dll" shows to make me put it under the same directory.

Some one may say that I may losing glut32.dll in system32(or in my case, syswow64 for 64 bit windows). It is proved true when I put it in the dir. The question is: I've never removed it before. How can it be that case?

Upvotes: 2

Views: 17249

Answers (5)

www-0av-Com
www-0av-Com

Reputation: 735

In W10 (64b), glut32.dll is not installed as standard and the convention seems to be "go find the source and compile it" (assuming like me you have an aversion to getting it off generic dll download sites).

Eventually, after visiting https://opengl.org/resources/libraries/glut/ , I found http://vis.eng.uci.edu/~jkimball/eecs205/glut.html which has a link to the DLL at https://user.xmission.com/~nate/glut.html

Oddly, regsvr32 would not register it, but dropping it into c:\Windows\SysWOW64\ worked fine.

Not to be confused with glu32.dll which is already there.

Hope this helps. Pls don't be rude by downvoting without explanation or modifying my reply for brownie points. I am trying to do you a favour.

Upvotes: 1

Ruman_bhuiyan
Ruman_bhuiyan

Reputation: 109

Copy and paste the file glut32.dil in location C:\Windows, it will fix all your problems.

If this does not work, then follow the steps below:

  1. Go to settings->compiler->linker settings->add C:\MinGw\lib\glut32.lib then PRESS ok.
  2. Go to settings->compiler->Toolchain executables->C:\Program Files (x86)\CodeBlocks\MinGW
  3. then copy and paste the file glut32.dll in location C:\Windows

Upvotes: 0

Dusti
Dusti

Reputation: 51

You must put the glut.dll files in:

C:/Windows/SysWOW64 This is the folder where 32-bit .dlls are located.

C:/Windows/System32 contains the 64-bit .dlls. You can also put the GLUT.dlls in System32, if you want to feel safe.

Upvotes: 5

datenwolf
datenwolf

Reputation: 162327

glut32.dll is not a core system library. It's not installed there by default. Maybe some program's installer did put its own copy into the system directory and removed it on uninstallation.

Anyway, glut32.dll is not a standard library and as such it's not a bad thing to ship an independent copy with your own program.

Upvotes: 5

Bartek Banachewicz
Bartek Banachewicz

Reputation: 39390

You could've just uninstalled something. I think it shouldn't be there in the first place, since it isn't some sort of standard library.

Anyway, it's always wise to supply all of the libraries needed by your program. You can have multiple applications using GLUT in different versions, so it's best bet to just keep it close to executable.

Upvotes: 1

Related Questions