Commit 16cd670d authored by Gan Quan's avatar Gan Quan
Browse files

MinGW building instructions

parent bc3f852d
...@@ -28,6 +28,8 @@ To sync the submodules, run ...@@ -28,6 +28,8 @@ To sync the submodules, run
$ git submodule update $ git submodule update
``` ```
### Linux
At the root directory of the repo: At the root directory of the repo:
```sh ```sh
...@@ -39,3 +41,23 @@ $ export DGL_LIBRARY_PATH=$PWD ...@@ -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. 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%
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment