comparison xml/en/docs/howto_build_on_win32.xml @ 2060:237b67ef69a6

Improved win32 build instructions. Added "--with-openssl-opt=no-asm" argument which is required since OpenSSL 1.0.2, as OpenSSL started to use assembler by default in 1.0.0 and then broke builds with MASM in OpenSSL 1.0.2 (ticket #1396). While here, added "--with-debug", added missing "--http-scgi-temp-path" and "--http-uwsgi-temp-path", updated OpenSSL to 1.0.2l, switched to slightly more readable one-argument-per-line style in configure example, added indentation to continuation lines, removed useless "--builddir=objs" argument ("objs" is the default), and removed useless "-f objs/Makefile" argument in nmake (nginx generates appropriate Makefile in the current directory).
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 17 Oct 2017 17:57:36 +0300
parents 7ee425a5ae29
children bea2d4e62376
comparison
equal deleted inserted replaced
2059:18d876538eee 2060:237b67ef69a6
7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> 7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd">
8 8
9 <article name="Building nginx on the Win32 platform with Visual C" 9 <article name="Building nginx on the Win32 platform with Visual C"
10 link="/en/docs/howto_build_on_win32.html" 10 link="/en/docs/howto_build_on_win32.html"
11 lang="en" 11 lang="en"
12 rev="8"> 12 rev="9">
13 13
14 <section name="Prerequisites"> 14 <section name="Prerequisites">
15 15
16 <para> 16 <para>
17 To build nginx on the <registered>Microsoft Win32</registered> platform you need: 17 To build nginx on the <registered>Microsoft Win32</registered> platform you need:
79 mkdir objs 79 mkdir objs
80 mkdir objs/lib 80 mkdir objs/lib
81 cd objs/lib 81 cd objs/lib
82 tar -xzf ../../pcre-8.41.tar.gz 82 tar -xzf ../../pcre-8.41.tar.gz
83 tar -xzf ../../zlib-1.2.11.tar.gz 83 tar -xzf ../../zlib-1.2.11.tar.gz
84 tar -xzf ../../openssl-1.0.2k.tar.gz 84 tar -xzf ../../openssl-1.0.2l.tar.gz
85 </programlisting> 85 </programlisting>
86 </listitem> 86 </listitem>
87 87
88 <listitem> 88 <listitem>
89 Run configure script: 89 Run configure script:
90 <programlisting> 90 <programlisting>
91 auto/configure --with-cc=cl --builddir=objs --prefix= \ 91 auto/configure \
92 --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid \ 92 --with-cc=cl \
93 --http-log-path=logs/access.log --error-log-path=logs/error.log \ 93 --with-debug \
94 --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp \ 94 --prefix= \
95 --http-proxy-temp-path=temp/proxy_temp \ 95 --conf-path=conf/nginx.conf \
96 --http-fastcgi-temp-path=temp/fastcgi_temp \ 96 --pid-path=logs/nginx.pid \
97 --with-cc-opt=-DFD_SETSIZE=1024 --with-pcre=objs/lib/pcre-8.41 \ 97 --http-log-path=logs/access.log \
98 --with-zlib=objs/lib/zlib-1.2.11 --with-openssl=objs/lib/openssl-1.0.2k \ 98 --error-log-path=logs/error.log \
99 --with-select_module --with-http_ssl_module 99 --sbin-path=nginx.exe \
100 --http-client-body-temp-path=temp/client_body_temp \
101 --http-proxy-temp-path=temp/proxy_temp \
102 --http-fastcgi-temp-path=temp/fastcgi_temp \
103 --http-scgi-temp-path=temp/scgi_temp \
104 --http-uwsgi-temp-path=temp/uwsgi_temp \
105 --with-cc-opt=-DFD_SETSIZE=1024 \
106 --with-pcre=objs/lib/pcre-8.41 \
107 --with-zlib=objs/lib/zlib-1.2.11 \
108 --with-openssl=objs/lib/openssl-1.0.2l \
109 --with-openssl-opt=no-asm \
110 --with-select_module \
111 --with-http_ssl_module
100 </programlisting> 112 </programlisting>
101 </listitem> 113 </listitem>
102 114
103 <listitem> 115 <listitem>
104 Run make: 116 Run make:
105 <programlisting> 117 <programlisting>
106 nmake -f objs/Makefile 118 nmake
107 </programlisting> 119 </programlisting>
108 </listitem> 120 </listitem>
109 121
110 122
111 </list> 123 </list>