-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.win
60 lines (49 loc) · 2.04 KB
/
INSTALL.win
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
INSTALL
-------
The following build requirements must be met to compile and install sticky:
- A Visual Studio installation capable of compiling legacy MSVC code.
- NMake (bundled with Visual Studio)
- CMake (for contrib if assimp is enabled)
- Git (for contrib)
The following libraries and headers are also dependencies to install sticky, and
are automatically fetched by the contrib resolving script:
- freetype2
- GL
- GLEW
- OpenAL
- SDL2
The following libraries are optional and not required to install sticky but will
limit the functionality of the library if not used:
- Assimp
The contrib folder contains an NMake readable build script (Makefile.win) which
fetches the required libraries and some extra external dependencies. These
dependencies are built into the engine automatically and are not included in the
above list.
Toggling optional libraries:
- Go to the project root directory and edit the ENABLE_XXX variables in
Makefile where XXX corresponds to an optional library.
- Follow the below instructions and compile as normal.
Caveats:
- assimp does not provide a 32-bit Visual Studio solution for Windows.
To build the library in 32-bit mode, you must use MinGW as given by the
assimp library.
Instructions:
- Go to the contrib folder and run `nmake /f Makefile.win' to download,
compile and prepare the extra external dependencies. This step may take a
while to complete.
- Open the solution `sticky.sln' in Visual Studio.
- Choose a build target. The project can be built for Release, Debug or Debug
with memtrace built in, and for 32-bit or 64-bit builds.
- Compile the project. The resulting library will be placed in the `build'
folder.
- The resulting .lib or .dll files can be copied to wherever you wish.
UNINSTALL
---------
The library does not install to a specific location on Windows computers.
If you have copied the build files to a different location, you must remove them
manually.
To wipe the build tree, delete the following folders:
- `build'
- `contrib/build'
- `contrib/lib32'
- `contrib/lib64'