<div dir="ltr">I followed instruction on <a href="http://nginx.org/en/docs/howto_build_on_win32.html">http://nginx.org/en/docs/howto_build_on_win32.html</a>. Once I run "<span style="color:rgb(0,0,0);text-align:justify">nmake -f objs/Makefile</span>", I got the following error:<br><div><br></div><div><div>$ nmake -f objs/Makefile</div><div><br></div><div>Microsoft (R) Program Maintenance Utility Version 14.00.24210.0</div><div>Copyright (C) Microsoft Corporation. All rights reserved.</div><div><br></div><div> "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" -</div><div>f auto/lib/pcre/makefile.msvc PCRE="objs/lib/pcre-8.40" pcre.h</div><div><br></div><div>Microsoft (R) Program Maintenance Utility Version 14.00.24210.0</div><div>Copyright (C) Microsoft Corporation. All rights reserved.</div><div><br></div><div> cd objs/lib/pcre-8.40</div><div>NMAKE : fatal error U1077: 'cd' : return code '0x1'</div><div>Stop.</div><div>NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 14.0</div><div>\VC\bin\nmake.exe"' : return code '0x2'</div><div>Stop.</div></div><div><br></div><div>Please help me out.</div><div><br></div><div>David</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 3, 2017 at 12:41 AM, 四弦 <span dir="ltr"><<a href="mailto:i@zby.io" target="_blank">i@zby.io</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div id="m_-1772459619037997538divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hello,</p>
<p>It's no problem,like any other program built on Windows.</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-1772459619037997538divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><span class=""><b>发件人:</b> nginx <<a href="mailto:nginx-bounces@nginx.org" target="_blank">nginx-bounces@nginx.org</a>> 代表 David Woodstuck <<a href="mailto:leeon2013@gmail.com" target="_blank">leeon2013@gmail.com</a>><br>
</span><b>发送时间:</b> 2017年8月3日 9:15:31<br>
<b>收件人:</b> <a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<b>主题:</b> Re: 答复: Building Nginx from source for Windows</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">If I build Nginx by following instructions on <a href="http://nginx.org/en/docs/howto_build_on_win32.html" target="_blank">http://nginx.org/en/docs/<wbr>howto_build_on_win32.html</a> on one Window machine, Can I copy it on this machine and paste it on another Window
machine and use it?
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>David</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Aug 2, 2017 at 1:05 AM, 四弦 <span dir="ltr"><<a href="mailto:i@zby.io" target="_blank">i@zby.io</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-1772459619037997538m_1686878861876318607divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<div id="m_-1772459619037997538m_1686878861876318607divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,Helvetica,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p>Hello,</p>
<p>The binary program built for Linux can't run directly on Windows.And the source of nginx is called a 'tarball',whose file structure is fit for Linux.To build it,you need Linux build tool chains.</p>
<p>The best solution is Cygwin,which is a program that allow you to use POSIX programs on Windows.Or if you use Windows10(Build 14393 and higher),you can consider to use Linux Subsystem On Windows.</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-1772459619037997538m_1686878861876318607divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> nginx <<a href="mailto:nginx-bounces@nginx.org" target="_blank">nginx-bounces@nginx.org</a>> 代表 David Woodstuck <<a href="mailto:leeon2013@gmail.com" target="_blank">leeon2013@gmail.com</a>><br>
<b>发送时间:</b> 2017年8月2日 12:35:45<br>
<b>收件人:</b> <a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<b>主题:</b> Building Nginx from source for Windows</font>
<div> </div>
</div>
<div>
<div dir="ltr"><span>
<div style="font-size:12.8px">I have two questions:</div>
<div style="font-size:12.8px"><br>
</div>
<span style="font-size:12.8px">1. How do I build Nginx from source for Windows?</span>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">2. If I can build Nginx from source for one Window OS, can I copy Nginx into another Windows?</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">3. I have already build Nginx from for Linux because I need this module -
<a href="https://github.com/yaoweibin/ngx_http_substitutions_filter_module" id="m_-1772459619037997538m_1686878861876318607LPlnk79436" target="_blank">
https://github.com/yaoweibin/n<wbr>gx_http_substitutions_filter_m<wbr>odule</a>. The build processs is the same for Linux and Windows(<a href="http://nginx.org/en/docs/configure.html" id="m_-1772459619037997538m_1686878861876318607LPlnk941610" target="_blank">http://nginx.org/en/do<wbr>cs/configure.html</a>).</div>
</span>
<div id="m_-1772459619037997538m_1686878861876318607LPBorder_GT_15016503188910.7400437989868212" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_-1772459619037997538m_1686878861876318607LPContainer_15016503188860.09918771332600085" cellspacing="0" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="m_-1772459619037997538m_1686878861876318607TextCell_15016503188880.3039467954908055" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_-1772459619037997538m_1686878861876318607LPRemovePreviewContainer_15016503188880.36857471530842423">
</div>
<div id="m_-1772459619037997538m_1686878861876318607LPTitle_15016503188880.8238038728637396" style="color:rgb(0,120,215);font-weight:normal;font-size:21px;font-family:"Microsoft YaHei UI","Microsoft YaHei",微软雅黑,SimSun,宋体,sans-serif;line-height:21px">
<a id="m_-1772459619037997538m_1686878861876318607LPUrlAnchor_15016503188890.9618205462211211" href="http://nginx.org/en/docs/configure.html" style="text-decoration:none" target="_blank">Building nginx from Sources</a></div>
<div id="m_-1772459619037997538m_1686878861876318607LPMetadata_15016503188890.9366185915982086" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:normal;font-family:"Microsoft YaHei UI","Microsoft YaHei",微软雅黑,SimSun,宋体,sans-serif;font-size:14px;line-height:14px">
<a href="http://nginx.org" target="_blank">nginx.org</a></div>
<div id="m_-1772459619037997538m_1686878861876318607LPDescription_15016503188900.08880151774693301" style="display:block;color:rgb(102,102,102);font-weight:normal;font-family:"Microsoft YaHei UI","Microsoft YaHei",微软雅黑,SimSun,宋体,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Building nginx from Sources. The build is configured using the configure command. It defines various aspects of the system, including the methods nginx is allowed to ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div id="m_-1772459619037997538m_1686878861876318607LPBorder_GT_15016503186380.33636890511451556" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_-1772459619037997538m_1686878861876318607LPContainer_15016503186290.7413553447662493" cellspacing="0" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="m_-1772459619037997538m_1686878861876318607ImageCell_15016503186310.6749602711023996" colspan="1" style="width:250px;display:table-cell;padding-right:20px">
<div id="m_-1772459619037997538m_1686878861876318607LPImageContainer_15016503186320.43047791627854126" style="background-color:rgb(255,255,255);height:250px;margin:auto;display:table;width:250px">
<a id="m_-1772459619037997538m_1686878861876318607LPImageAnchor_15016503186330.5655247054524364" href="https://github.com/yaoweibin/ngx_http_substitutions_filter_module" style="display:table-cell;text-align:center" target="_blank"><img id="m_-1772459619037997538m_1686878861876318607LPThumbnailImageID_15016503186330.9762853121395105" style="display:inline-block;max-width:250px;max-height:250px;height:250px;width:250px;border-width:0px;vertical-align:bottom" width="250" height="250" src="https://avatars0.githubusercontent.com/u/153753?v=4&s=400"></a></div>
</td>
<td id="m_-1772459619037997538m_1686878861876318607TextCell_15016503186340.1292472142870582" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_-1772459619037997538m_1686878861876318607LPRemovePreviewContainer_15016503186340.8516356708601658">
</div>
<div id="m_-1772459619037997538m_1686878861876318607LPTitle_15016503186340.9814731799458662" style="color:rgb(0,120,215);font-weight:normal;font-size:21px;font-family:"Microsoft YaHei UI","Microsoft YaHei",微软雅黑,SimSun,宋体,sans-serif;line-height:21px">
<a id="m_-1772459619037997538m_1686878861876318607LPUrlAnchor_15016503186350.6052636566815346" href="https://github.com/yaoweibin/ngx_http_substitutions_filter_module" style="text-decoration:none" target="_blank">GitHub - yaoweibin/ngx_http_substitutio<wbr>ns_filter_module: a ...</a></div>
<div id="m_-1772459619037997538m_1686878861876318607LPMetadata_15016503186360.8795220598971056" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:normal;font-family:"Microsoft YaHei UI","Microsoft YaHei",微软雅黑,SimSun,宋体,sans-serif;font-size:14px;line-height:14px">
<a href="http://github.com" target="_blank">github.com</a></div>
<div id="m_-1772459619037997538m_1686878861876318607LPDescription_15016503186370.08562489535370177" style="display:block;color:rgb(102,102,102);font-weight:normal;font-family:"Microsoft YaHei UI","Microsoft YaHei",微软雅黑,SimSun,宋体,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
ngx_http_substitutions_filter_<wbr>module - a filter module which can do both regular expression and fixed string substitutions for nginx</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Thanks,</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">David</div>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailm<wbr>an/listinfo/nginx</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
<br>______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br></blockquote></div><br></div>