How to build or install freeglut on a windows machine

半腔热情 提交于 2019-12-06 11:42:26

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.

Info for anyone trying to get the samples for 4th ed OpenGL superbible to work on a Windows box.

The website comes with everything you need. No need to build or install freeglut seperately. It's just that the projects are not configured correctly. For visual studio 2010, here's the fix for the first project entitled block:

  1. Right click the project > properties > VC++ Directories > Library Directories (not Include directories) > Add a link to the freeglut_static.lib which comes with the download. E.G. C:\DevStuff\OpenGL\SB-WinwBin\SuperBible4\examples\src\shared;

  2. If you build now, you will get a new error regarding inability to link LIBC.lib. With the project properties still open go to Linker > Input > Ignore Specific Default Libraries > click the dropdown arrow > click <Edit...> > type LIBC.lib and click ok.

Now everything should build just fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!