forked from RomkoSI/G3D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.md.html
More file actions
185 lines (141 loc) · 8.57 KB
/
Copy pathreadme.md.html
File metadata and controls
185 lines (141 loc) · 8.57 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
**G3D 10.xx Build System Instructions**
G3D builds with a Python script named "`buildg3d`". All of the
software required for building and using G3D is available for free on
all platforms.
Downloading and building G3D takes about 30 minutes on a recent
desktop computer with a fast network connection. The source code
repository contains all of the library dependencies. Once you've built
G3D, you can update to a newer release in a few minutes as an
incremental build.
Binary releases of G3D are available, however we recommend building
G3D yourself from source so that you can step into it when debugging
and access the latest changes from subversion.
Windows
==========================================================================
## Install
1. 64-bit Windows 7, 8.1, or 10
2. [Python 3.4 or later](https://www.python.org/downloads/windows/)
3. Visual Studio 2015 or later, either the Professional
or the [free Community version](https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx)
4. A subversion client such as [TortoiseSVN](http://tortoisesvn.net/downloads.html)
5. Create a directory for G3D, such as `c:\g3d`, and set a `g3d` **system** environment variable to its path.
6. Consider joining [g3d-users](https://groups.google.com/forum/#!forum/g3d-users) Google group to be notified
of new features and receive support.
## Asset Packs (Optional)
G3D includes common asset files for making games, demos, and research
projects, as well as for its own sample programs and automated tests.
The asset packs are large, so they are an optional download.
To install *all* of the asset packs, SVN check out
`svn://g3d.cs.williams.edu/g3d/data10` to `%g3d%\data10`.
Or, if you prefer, check out only the [subdirectories of
data10](http://g3d.cs.williams.edu/websvn/listing.php?repname=g3d&path=%2Fdata10%2F&#a5b91a96ce30627431194980d9304afd2)
that you need into `%g3d%\data10\`.
## Configure & Build
1. SVN check out `svn://g3d.cs.williams.edu/g3d/G3D10` to `%g3d%\G3D10` (do not use the http protocol...you must use `svn://`)
2. Set the **user** environment variable `G3D10DATA=%g3d%\G3D10\data-files;%g3d%\data10\common;%g3d%\data10\game;%g3d%\data10\research;%g3d%\G3D10\data-files`
3. Add `%g3d%\G3D10\build\bin` to your `PATH` environment variable (so that Windows can find DLLs when launching your own programs)
4. Set the system-wide VC Directories in `Microsoft.Cpp.Win64.user.props` explicitly, or through the Visual Studio IDE (View ==> Other Windows ==> Property Manager, G3D ==> starter ==> Release|x64->Microsoft.Cpp.x64.user ==> properties ==> VC++ Directories):
- Include: `$(g3d)\G3D10\build\include`
- Library: `$(g3d)\G3D10\build\lib`
5. At a command prompt in the `%g3d%\G3D10` directory, run `buildg3d lib data`
If you are using OS X or Linux and your `PATH` variable doesn't include the current directory ("`.`"), then
you must type `./buildg3d lib data`.
We recommend copying the contents of
`%g3d%\G3D10\build\samples\starter` to your own directory when
creating your own new G3D projects. It includes a typical directory
structure and Visual Studio project files.
See also the Visual Studio integration files in the `G3D10\bin`
directory and the Visual Studio installation notes in the
documentation.
_It is possible to build the library on Windows using the Visual Studio
IDE, however documentation, headers, demos, and other aspects of the
full build will be missing. Dependencies are sometimes processed
incorrectly if you haven't run the full command-line build first. The
G3D team **DOES NOT SUPPORT** direct use of the Visual Studio project
files. We only support the buildg3d script that calls them._
## Advanced (Optional)
The G3D development team uses the header files and data files directly
from the source tree. We're continuously changing these and want to
ensure that we're stepping into and modifying the latest version. If
you wish to do this as well, then make the following changes.
Remove `$(g3d)\build\include` from your VC include
directory. In its place, add:
~~~~~
$(g3d)\G3D10\assimp.lib\include;$(g3d)\G3D10\civetweb.lib\include;$(g3d)\G3D10\enet.lib\include;$(g3d)\G3D10\freeimage.lib\include;$(g3d)\G3D10\glew.lib\include;$(g3d)\G3D10\glfw.lib\include;$(g3d)\G3D10\nfd.lib\include;$(g3d)\G3D10\qrencode.lib\include;$(g3d)\G3D10\zip.lib\include;$(g3d)\G3D10\zlib.lib\include;$(g3d)\G3D10\openvr\include;$(g3d)\G3D10\physx\include;$(g3d)\G3D10\G3D.lib\include;$(g3d)\G3D10\GLG3D.lib\include;$(g3d)\G3D10\GLG3DVR.lib\include;$(g3d)\G3D10\openvr\include;$(g3d)\G3D10\tbb\include
~~~~~
Set your `G3D10DATA` environment variable to include a
semicolon-separated list of your asset pack locations. If you use all
asset packs, this is:
~~~~~
%g3d%\G3D10\data-files;%g3d%\data10\common;%g3d%\data10\research;%g3d%\data10\game
~~~~~
You can create your own private asset packs and add them to this
variable, of course.
OS X
=========================================================================
Because OS X video drivers are produced by Apple as part of the
operating system, they tend to lag the features on Windows by about 18 months.
The G3D build on OS X uses legacy support to emulate these
features for you. If you have a choice, we recommend developing on
Windows.
Install:
1. OS X 10.10.4 or later
2. [Python 3.4 or later](https://www.python.org/downloads/mac-osx/)
3. LLVM 3.6.0 and clang, from [Xcode](https://developer.apple.com/xcode/)
4. [yasm 1.3](http://www.macports.org/ports.php?by=name&substr=yasm) via macports
5. [Exuberant-ctags](http://www.macports.org/ports.php?by=library&substr=ctags) via macports
6. Consider joining [g3d-users](https://groups.google.com/forum/#!forum/g3d-users) Google group to be notified
of new features and receive support.
Follow the Windows instructions above, setting your `g3d`,
`G3D10DATA`, `INCLUDE`, `LIBRARY`, and `PATH` environment variables
accordingly. Note that OS X paths are delimited by colons instead of
semicolons.
The OSX and Linux builds will install an internal version of FFMPEG
(http://ffmpeg.org/) to the G3D installation directory, so be careful
not to overwrite a previously installed version unintentionally.
Linux
=========================================================================
The G3D Linux build is experimental and unsupported. We perform
primary development on Windows and port monthly to OS X. The Linux
build is updated about twice a year.
Install:
1. Ubuntu Linux 14
2. Python 3.4
3. LLVM and clang, or gcc/g++
4. The following library packages: All of these packages can be installed on Ubuntu with bin/ubuntu_config.sh
1. Current version of [libzip](http://nih.at/libzip/)
2. Current version of [libz](http://www.zlib.net/)
3. Current version of mesa
4. Current version of xrandr
5. Current version of xi
6. Current version of libxxf86vm
7. Current version of libxcursor
8. Current version of libgtk
9. Current version of libncurses
10. Exuberant-ctags
5. Consider joining [g3d-users](https://groups.google.com/forum/#!forum/g3d-users) Google group to be notified
of new features and receive support.
Follow the Windows instructions above, setting your `g3d`,
`G3D10DATA`, `INCLUDE`, `LIBRARY`, and `PATH` environment variables
accordingly. Note that Linux paths are delimited by colons instead of
semicolons.
The OSX and Linux builds will install an internal version of FFMPEG
(http://ffmpeg.org/) to the G3D installation directory, so be careful
not to overwrite a previously installed version unintentionally.
Documentation (Optional)
=========================================================================
The G3D documentation for the latest release and subversion top of
tree are available online. If you wish to build a local copy of the
documentation, you'll need the following:
1. [Doxygen 1.8.0 or later](http://www.doxygen.org)
- on Windows, add the install directory to your `PATH` variable
- on OS X, add `/Applications/Doxygen.app/Contents/Resources/` to your `PATH` variable
2. LaTeX
- use [MikTex](http://miktex.org/) for Windows
- for all other platforms, use [TexLive](https://www.tug.org/texlive)
3. [Ghostscript](http://pages.cs.wisc.edu/~ghost/)
-------------------------------------------------------------------------
Run "`buildg3d help`" at the command line for more information
about the build sytem.
Post on g3d-users@googlegroups.com with questions about the build system.
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js"></script><script src="https://casual-effects.com/markdeep/latest/markdeep.min.js"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>