50% developed

Guide to Game Development/Rendering and Game Engines/OpenGL/GLUT/Packaging GLUT for export

From Wikibooks, open books for an open world
Jump to navigation Jump to search
The files that you'll need when distributing a C++ GLUT project.

This is a list of all of the basics you'll need to package together when you want to distribute a C++, OpenGL, Glut project with others.

First you'll need to make a folder that will be where you collect all your distribution items. In-which all of the items inside are copied and are duplicated elsewhere.

Here are all of the items:

  • res (or what ever your your resource folder is called (your program needs to know what it's called to find where the files are))
This is a folder with all of the external resources that the program might use (example: textures).
  • glut32.dll AND glut32.lib
These are the glut files that your program uses. You got them when you first installed GLUT, they were obtained from xmission.com.
  • The program itself
This is your program that's compiled that you can run.
If you're using Visual Studio:
1. You need to change the compile mode at the top from 'Debug' to 'Release'
2. Then press F7 to build, but not run, the project
3. Find the folder where it's kept
To do this, you'll need to find where your projects folder is.
From there your project folder, you'll then need to open the Release folder.
4. Copy and paste the exe from that folder into your export folder
  • vcredist_x64 OR vcredist_x84
These are the files used for exporting C++ projects
If your project is a 32-bit project you'll need to package: vcredist_x84
If your project is a 64-bit project you'll need to package: vcredist_x64
You can find both of these files from Microsoft's support website.

References[edit | edit source]