X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=README;h=a594703833e1ef769afd272404efecfac5ce20ed;hb=db13c6de0558fac44baed03c24af111c50dad7ec;hp=a111e84a3d58c84df858b9dcf02fdfffdf6d8975;hpb=733fc645b6389d1f42aef8f1c1631f1db7d58196;p=collectd.git diff --git a/README b/README index a111e84a..a5947038 100644 --- a/README +++ b/README @@ -1044,6 +1044,37 @@ To generate the `configure` script, you'll need the following dependencies: The `build.sh' script takes no arguments. +Building on Windows +----------------------------------------------- + +Collectd can be built on Windows using Cygwin, and the result is a binary that +runs natively on Windows. That is, Cygwin is only needed for building, not running, +collectd. + +You will need to install the following Cygwin packages: +- automake +- bison +- flex +- git +- libtool +- make +- mingw64-x86_64-dlfcn +- mingw64-x86_64-gcc-core +- mingw64-x86_64-zlib +- pkg-config + +To build, just run the `build.sh' script in your Cygwin terminal. By default, it installs +to "C:/Program Files/collectd". You can change the location by setting the INSTALL_DIR +variable: + +$ export INSTALL_DIR="C:/some/other/install/directory" +$ ./build.sh + +or: + +$ INSTALL_DIR="C:/some/other/install/directory" ./build.sh + + Crosscompiling --------------