"missing glut32.dll" with OpenGL under VS2010

13,482

Solution 1

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.

Solution 2

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.

Solution 3

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.

Share:
13,482
Narusaki
Author by

Narusaki

Updated on June 20, 2022

Comments

  • Narusaki
    Narusaki almost 2 years

    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?

  • Narusaki
    Narusaki over 11 years
    Yeah, I think so, too. But my boss who always want to make a whole-independent exe pachage for publishing the program doesn't...thx:)
  • Narusaki
    Narusaki over 11 years
    It's just because an independent executable program will always be welcome for some people...
  • datenwolf
    datenwolf over 11 years
    @Narusaki: Tell your boss, that if your program needs GLUT, you must ship it with GLUT. GLUT is not something you can expect to be present on the end user's system. In package based Linux distributions you can mark the GLUT package as a dependency, but for a self contained installer on Windows, not really. If everthing fails, link it statically with your program (you'll need FreeGLUT for this and build it as a static library first).
  • Bartek Banachewicz
    Bartek Banachewicz over 11 years
    Do as datenfolf said then, link statically. I don't really see the difference between copying one file or two files.
  • www-0av-Com
    www-0av-Com over 4 years
    From where please?