Unofficial OpenGL Software Development Kit
0.5.0
|
In order to build the SDK, you must first have installed your development environment of choice. Please ensure that your development environment is functional and up to date.
Supported development environments are:
Outside of the Premake utility, the Unofficial OpenGL SDK is completely self-contained. It has no external dependencies. Simply download the distribution and unzip the package into a directory of your choice.
To simplify the build process for the SDK across platforms, the build system used for the SDK is the Premake utility, version 4.3 or later.
Premake is a utility for generating build files; it does not do the building itself. The general idea is this: you run the Premake program on Premake scripts. This will generate the build files for your development environment of choice. Then you use those build files in that development environment to build your project.
For example, if you are using GCC and the standard GNU tools, Premake would generate a Makefile
, which you would then use GNU Make on as normal. If you use Visual Studio, Premake generates .sln
and .vcproj
files for the VS version of your choice.
For each build tool, Premake has a command to generate the build files for that tool. For example, to execute Premake for Visual Studio 2008, the following command line would be used:
To build a GNU Makefile, one would use
Each build tool that Premake supports has its own command; the Premake documentation explains how they work.
To compile the libraries that are part of the SDK, perform the following steps:
premake4 plat
, where plat is the Premake4 command for your build system of choice. This process will generate the static libraries for all of the libraries that need compiling (some libraries, like GLM, are pure header libraries).
The SDK comes with a number of pieces of example code. These are useful as reference material when getting started with OpenGL.
To compile the examples, perform the following steps:
examples
directory. premake4 plat
, where plat is the Premake4 command for your build system of choice. The examples are all intended to be executed in the directories where the executables are generated. Any paths they use are relative to that directory.