Skip to content

Commit

Permalink
MinGW building instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
BarclayII committed Oct 18, 2018
1 parent bc3f852 commit 16cd670
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ To sync the submodules, run
$ git submodule update
```

### Linux

At the root directory of the repo:

```sh
Expand All @@ -39,3 +41,23 @@ $ export DGL_LIBRARY_PATH=$PWD
```

The `DGL_LIBRARY_PATH` environment variable should point to the library `libdgl.so` built by CMake.

### Windows/MinGW (Experimental)

Make sure you have the following installed:

* CMake
* MinGW/GCC (G++)
* MinGW/Make

You can grab them from Anaconda.

In the command line prompt, run:

```
> md build
> cd build
> cmake -DCMAKE_CXX_FLAGS="-DDMLC_LOG_STACK_TRACE=0 -DTVM_EXPORTS" .. -G "MinGW Makefiles"
> mingw32-make
> set DGL_LIBRARY_PATH=%CD%
```

0 comments on commit 16cd670

Please sign in to comment.