From 41052f0d6ea840255ce90f1cb745241f9009defb Mon Sep 17 00:00:00 2001 From: Qiang Kou Date: Thu, 18 Feb 2016 16:36:04 -0800 Subject: [PATCH] update windows instructions --- doc/build.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/build.md b/doc/build.md index 52b98e5ab..bfe9e6b2b 100644 --- a/doc/build.md +++ b/doc/build.md @@ -80,6 +80,9 @@ cd xgboost; cp make/config.mk ./config.mk; make -j4 ### Building on Windows You need to first clone the xgboost repo with recursive option clone the submodules. If you are using github tools, you can open the git-shell, and type the following command. +We recommend using the [Git for Windows](https://git-for-windows.github.io/), +because it brings a standard bash shell. This will highly ease the installation process. + ```bash git submodule init git submodule update @@ -87,7 +90,17 @@ git submodule update XGBoost support both build by MSVC or MinGW. Here is how you can build xgboost library using MinGW. -Build with mingw +After installing [Git for Windows](https://git-for-windows.github.io/), you should have a shortcut `Git Bash`. +All the following steps are in the `Git Bash`. + +In MinGW, `make` command comes with the name `mingw32-make`. You can add the following line into the `.bashrc` file. + +```bash +alias make='mingw32-make' +``` + +To build with MinGW + ```bash cp make/mingw64.mk config.mk; make -j4 ```