-
Notifications
You must be signed in to change notification settings - Fork 10
How to build the engine
-
- Windows (currently the project is made to work only on Windows)
- Visual Studio >= 2017
- Cmake (at least 3.10.x)
- git
The best way to clone and download the repository is to execute this command that download also submodules:
git clone --recurse-submodules https://github.com/ScrappyCocco/ScrapEngine.git
otherwise you can download the repository clicking the green button "Clone or download" > "Download ZIP" in the repository main page.
If you executed the git clone command with
--recurse-submodules
you can skip this part.
Otherwise the best way to clone and download all submodules, is to enter the repository directory once downloaded and execute:
git submodule update --init --recursive
For every submodule listed down there you have to follow these steps:
- Enter the submodule directory and execute
mkdir build
andcd build
- Execute
cmake -G "Visual Studio 15 2017 Win64" ..
- Open the generated solution (.sln) and build it both in Debug mode and in Release mode.
Submodules to build: (you can find all of them in external/)
- assimp;
- enkits;
- glfw (this is the only one that can give you some problems, you need to define
_GLFW_WIN32
in cmake (as bool 'true'), you can use cmake-gui to do it easily. For more information see building glfw manually); - openal-soft (if the compilation fails, check that the every generated project use Windows SDK <= 10.0.17134.0);
- reactphysics.
First: go to external\assimp\include\assimp
and copy config.h.in
to another file config.h
(notice the .h and no longer .in)
Once you built all the submodules described in the point above, open ScrapEngine.sln and run it.
It should automatically find all the necessary external files if you did everything correctly, and should start the example game.
If you need help to run the example game, see How to execute SimpleGame.
If you find something wrong or are not able to build the project, please contact me opening an issue.
This documentation describe only a small part of the engine, since it's not made to be used by a large amount of people.
If you would like to know more about a part of the engine, how to do something, or if a part of the documentation is not correct/out of date, please open an issue and tell me.
Thank you for reading the ScrapEngine Wiki!
Getting started
Engine structure
Using the Engine