Search code examples
c++openglfreeglut

How to build or install freeglut on a windows machine


I downloaded freeglut. I'm reading the installation instructions. I extracted all the files. I see a file called configure (and configure.ac). I opened visual studio command prompt and changed the directory to

C:\DevStuff\OpenGL\freeglut-2.8.0

The next step is to configure the packages

./configure

This looks like a Linux command. How am I supposed to complete this kind of a build on a windows 7 machine? I have visual studio 2010 ultimate ed.

UPDATE

I found the VS2010 directory and successfully performed a build. I need freeglut_static.lib, which did not come out of this build. The output directory

..\..\lib\x86\Debug contains only one lib file, freeglut.lib.

I suspect I need the makefile, but I really don't know. This lib is required for OpenGL Superbible sample projects. In the sample projects when I try to run it a compilation error:

error LNK1181: cannot open input file 'freeglut_static.lib' C:\DevStuff\OpenGL\SB-WinwBin\SuperBible4\examples\projects\microsoft\chapt01\block\LINK    block

Solution

  • How am I supposed to complete this kind of a build on a windows 7 machine?

    MSYS.

    Or use the VS2010 solution in the VisualStudio\2010 directory.

    EDIT:

    If you need freeglut_static.lib use the Debug_Static or Release_Static configurations in freeglut.sln.