forked from openglsuperbible/sb6code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHOWTOBUILD.txt
More file actions
executable file
·52 lines (38 loc) · 2.16 KB
/
HOWTOBUILD.txt
File metadata and controls
executable file
·52 lines (38 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
OpenGL SuperBible 6th Edition Examples - How to Build
-----------------------------------------------------
Windows / Microsoft Visual Studio 2010:
Project files are included in the source archive for Visual Studio 2010. These
will work with Professional (all tiers) and Express editions. Newer versions
of Visual Studio _should_ import them just fine, but this is not extensively
tested. Simply open the sb6.sln file in Visual Studio and hit build (F7).
Evertything will build and you'll end up with binaries in the 'bin' directory.
Linux:
Makefiles are _not_ included. Rather, the project depends on CMake. You'll
need to install it with the appropriate method for your distribution. On
Debian-based distributions (such as Ubuntu and Mint):
sudo apt-get install cmake
You'll also need to satisfy dependencies. In particular, you'll need GL and
GLX headers and libs (generally included in Mesa packages), and GLFW. There's
a snapshot of GLFW included in the archive, which you can build and install if
you wish, but pre-compiled packages should be available for most
distributions.
Once you have everything, you should enter the top directory where you
unpacked the source and issue:
cmake .
make
The examples will build into the 'bin' directory.
Other platforms:
The code will probably build for other platforms, especially if they are
relatively non-obscure, but nothing besides Windows/Visual Studio and Linux
has been tested. If you wish, you can re-generate the Visual Studio project
files using CMake on Windows, and CMake should be able to build the
appropriate project files for environments such as Code::Blocks and Eclipse,
but again, this is untested.
Running the samples:
Most of the samples require some media files. The media files package is a
separate download available from http://www.openglsuperbible.com and is
rougly 100MB of textures, object files and shader code. Unpack the archive
to the bin/media directory before trying to run these samples.
Please note carefully: EVEN IF YOU CAN BUILD THE SOURCES FOR YOUR FAVORITE
PLATFORM OF CHOICE, YOU NEED RECENT OpenGL 4.3 DRIVERS TO RUN THEM. PLEASE
DON'T PAN MY BOOK BECAUSE YOUR COMPUTER DOESN'T SUPPORT OpenGL 4.3. THANKS