From 362ff09183d026cfba60e126484fd3eeb2cf60cc Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Mon, 30 Mar 2015 18:29:10 +0800 Subject: [PATCH 1/3] add build notes for windows user under Mingw and Cygwin --- README.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.rst b/README.rst index dc0d1d95..1c97fba2 100644 --- a/README.rst +++ b/README.rst @@ -139,6 +139,25 @@ To compile the source code, gcc >= 4.8.3 or clang >= 3.4 is required. them from crashing. A patch is welcome to make multi threading work on Mac OS X platform. +Notes for building on Windows (Mingw/Cygwin) +------------------------------------------- + +Under Mingw environment, you can only complie the library, it's `libnghttp2-X.dll` and `libnghttp2.a`. + +If you want to compile the applications(`h2load`, `nghttp`, `nghttpx`, `nghttpd`), you need to use the Cygwin environment. + +Under Cygwin environment, to compile the applications you need to compile and install the `libev` first. + +and second, you need to undefine the macro \_\_STRICT\_ANSI\_\_, if you not, the functions `fdopen`, `fileno` and `strptime` will not available. + +the simple command like this: + + export CFLAGS="-U__STRICT_ANSI__ -I$libev_PREFIX/include -L$libev_PREFIX/lib" + export CXXFLAGS=$CFLAGS + make + +If you want to compile the applications under `examples/`, you need to remove or rename the `event.h` from libev's installation, because it conflicts with libevent's installation. + Building the documentation -------------------------- From 522faeb24fd64f5601d81664dbc937ec7c0bd36c Mon Sep 17 00:00:00 2001 From: Dingjun Date: Mon, 30 Mar 2015 18:39:07 +0800 Subject: [PATCH 2/3] Update README.rst --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 1c97fba2..e17c21b0 100644 --- a/README.rst +++ b/README.rst @@ -150,11 +150,11 @@ Under Cygwin environment, to compile the applications you need to compile and in and second, you need to undefine the macro \_\_STRICT\_ANSI\_\_, if you not, the functions `fdopen`, `fileno` and `strptime` will not available. -the simple command like this: +the simple command like this:: - export CFLAGS="-U__STRICT_ANSI__ -I$libev_PREFIX/include -L$libev_PREFIX/lib" - export CXXFLAGS=$CFLAGS - make + export CFLAGS="-U__STRICT_ANSI__ -I$libev_PREFIX/include -L$libev_PREFIX/lib" + export CXXFLAGS=$CFLAGS + make If you want to compile the applications under `examples/`, you need to remove or rename the `event.h` from libev's installation, because it conflicts with libevent's installation. From c47855085b34b94e3429b6c42bc7136074d3d117 Mon Sep 17 00:00:00 2001 From: Dingjun Date: Tue, 31 Mar 2015 10:02:22 +0800 Subject: [PATCH 3/3] Update README.rst fix the typo and add the missing command in sample command --- README.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index e17c21b0..b6887475 100644 --- a/README.rst +++ b/README.rst @@ -142,7 +142,7 @@ To compile the source code, gcc >= 4.8.3 or clang >= 3.4 is required. Notes for building on Windows (Mingw/Cygwin) ------------------------------------------- -Under Mingw environment, you can only complie the library, it's `libnghttp2-X.dll` and `libnghttp2.a`. +Under Mingw environment, you can only compile the library, it's `libnghttp2-X.dll` and `libnghttp2.a`. If you want to compile the applications(`h2load`, `nghttp`, `nghttpx`, `nghttpd`), you need to use the Cygwin environment. @@ -150,10 +150,11 @@ Under Cygwin environment, to compile the applications you need to compile and in and second, you need to undefine the macro \_\_STRICT\_ANSI\_\_, if you not, the functions `fdopen`, `fileno` and `strptime` will not available. -the simple command like this:: +the sample command like this:: export CFLAGS="-U__STRICT_ANSI__ -I$libev_PREFIX/include -L$libev_PREFIX/lib" export CXXFLAGS=$CFLAGS + ./configure make If you want to compile the applications under `examples/`, you need to remove or rename the `event.h` from libev's installation, because it conflicts with libevent's installation.