From 293eedc85ecc6bbeb421e78398359e82c011fa45 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 10 Feb 2016 10:48:42 +0000 Subject: [PATCH] Add command-line Windows build instructions to README. --- README.md | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c991ffdc..47f9dc93 100644 --- a/README.md +++ b/README.md @@ -104,17 +104,38 @@ Building on Windows You will need [cmake][cmakewin] and Visual C++. -You will also need to check out the git submodules. +### GUI build -After installing them, create a directory `build` in the source tree -and point cmake-gui to the source tree and that directory. Press -"Configure" and "Generate", then open `build\solvespace.sln` with +Check out the git submodules. Create a directory `build` in +the source tree and point cmake-gui to the source tree and that directory. +Press "Configure" and "Generate", then open `build\solvespace.sln` with Visual C++ and build it. -Alternatively it is possible to build SolveSpace using [MinGW][mingw]. -Run cmake-gui as described above but after pressing "Configure" select -the "MSYS Makefiles" generator. After that, run `make` in the `build` -directory; make sure that the MinGW compiler is in your `PATH`. +### Command-line build + +First, ensure that git and cl (the Visual C++ compiler driver) are in your +`%PATH%`; the latter is usually done by invoking `vcvarsall.bat` from your +Visual Studio install. Then, run the following in cmd or PowerShell: + + git submodule update --init + mkdir build + cd build + cmake .. -G "NMake Makefiles" + nmake + +### MSVC build + +It is also possible to build SolveSpace using [MinGW][mingw], though +Space Navigator support will be disabled. + +First, ensure that git and gcc are in your `$PATH`. Then, run the following +in bash: + + git submodule update --init + mkdir build + cd build + cmake .. + make [cmakewin]: http://www.cmake.org/download/#latest [mingw]: http://www.mingw.org/