4565 Home






  • Installing GLUT & MS Visual C++ 2017

    OpenGL should be installed already with MSVC - Freeglut / GLUT is missing.

    Original GLUT is very dated now and not actively supported - so you should certainly be using Freeglut instead. You won't have to change your code at all, and a few additional features become available.

    You'll find pre-packaged sets of files from here: http://freeglut.sourceforge.net/index.php#download 

    When you download these you'll find that the Freeglut folder has three subfolders: - bin folder: this contains the dll files for runtime - include: the header files for compilation - lib: contains library files for compilation/linking

    Installation instructions usually suggest moving these files into the visual studio folder and the Windows system folder: It is best to avoid doing this as it makes your project less portable, and makes it much more difficult if you ever need to change which version of the library you are using (old projects might suddenly stop working, etc.)

    1. Copy the *.dll from bin and paste it in C:\Windows\System folder.
    2. Copy *.h files from include and paste it in C:\Program Files\Windows Kits\8.1\Include\um\gl folder
    3. Copy *.lib from lib and paste it in C:\Program Files\Windows Kits\8.1\Lib\um\x86 folder

    Above directory structure might be slightly different between Win 7, Win 8, Win 8.1, and Windows 10