Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/docs/building_windows.txt
2024-01-03 16:05:02 -05:00

50 lines
No EOL
2.1 KiB
Text

This guide is written for the latest Visual Studio released of writing, which would be Visual Studio 2015. These instructions
were written while getting Graphite to compile for Windows, so they might be incomplete or broken but should give you a
general idea of how to compile.
Compile Dependencies
-----------------
Bullet
1. Download latest bullet from https://github.com/bulletphysics/bullet3/releases
2. Run cmake and make sure to select the correct generator
* Make sure to set the cmake flag USE_MSVC_RUNTIME_LIBRARY_DLL!
3. Open the solution
4. Once Visual Studio is done parsing the solution, build the solution
Assimp
1. Download assimp from https://github.com/assimp/assimp/releases
2. Run cmake and make sure to select the correct generator
3. Open the solution
4. Once Visual Studio is done parsing the solution, build the solution
GLFW3
1. Download GLFW3 from http://www.glfw.org/download.html (64-bit windows binaries)
GLM
1. Download glm from https://github.com/g-truc/glm/releases
Physfs
1. Download the stable release Physfs 2.0.3 from https://icculus.org/physfs/downloads/
2. Run cmake and make sure to select the correct generator
3. Open the solution
4. Once Visual Studio is done parsing the solution, build the solution
Compile Graphite
-----------------
Note: (build type) refers to the build configuration you are targeting (Debug, Release, etc). This needs to be the same as the
libraries.
1. Find a way to download the source code.
2. Run cmake and make sure to select the correct generator.
3. Configure the cmake variables
* assimp include dir should point towards assimp root -> include
* assimp library should point towards assimp build output -> code -> (build type) -> lib file
* Bullet include dir should point towards your bullet root -> src
* BULLET_ROOT (you will have to create this yourself) and set it to bullet build output -> lib -> (build type)
* GLFW_ROOT (ditto) and set it to glfw downloaded root
* glm include dir -> glm root
* PHYSFS_INCLUDE_DIR is physfs root
* PHYSFS_LIBRARY is physfs build output -> (build type) -> physfs.lib
5. Open and build the solution