From f4834e26072348922d3da5878788cb35aaef7c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Bergstr=C3=B6m?= <davbe125@student.liu.se> Date: Thu, 2 Aug 2018 13:57:56 +0200 Subject: [PATCH] Add build instructions --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 970bc36..a4d2ad9 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,32 @@ Key differences: * Everything is built using cmake, allowing for one Visual studio project to build PyCommandCenter together with all its dependencies +# How to build (Windows) + +First you need to make sure you got all the build dependencies: + +* cmake +* Visual Studio 2017 or later (earlier might work, but untested) +* git +* python 3.6 or later (earlier might work, but untested) + +1. Run `git clone --recurse-submodules + https://gitlab.ida.liu.se/davbe125/s2-python-api.git` in order to get the + code and all its dependencies +2. Next, open the repository in your file viewer and run the batch script + called `create-visual-studio-solution.bat` in order to use cmake to create a + Visual studio solution +3. Open the Visual Studio solution located in the newly created directory + `build/` +4. The project called `library` should be selected as the default StartUp + project in the Solution Explorer (on the right side by default) +5. Change settings to Release and x64 +6. Click "Local Windows Debugger" and it will start compiling +7. Visual Studio will open an error message telling you it cannot open the + resulting library file, which means it **successfully** created the library + file. The file will be located at `build\python-api-src\Release` and its + name will depend on the python version used. + # Credits CommandCenter is written by [David Churchill](http://www.cs.mun.ca/~dchurchill/), Assistant Professor of [Computer Science](https://www.cs.mun.ca/) at Memorial University, and organizer of the [AIIDE StarCraft AI -- GitLab