Windows build (nginx-19.8)

Maxim Dounin mdounin at mdounin.ru
Thu Mar 11 02:04:15 UTC 2021


Hello!

On Wed, Mar 10, 2021 at 10:29:11PM -0300, Ranier Vilela wrote:

> The documentation at http://nginx.org/en/docs/howto_build_on_win32.html,
> it's a little out of date.
> But I can build nginx-1.10 successfully.
> However I am trying to build nginx-1.19.8 now, and I have encountered
> problems.
> Windows 10 64 bits
> Msvc 2019 64 bits
> 
> ./configure --with-cc=cl --builddir=objs --prefix= \

[...]

> nmake
> 
> Microsoft (R) Program Maintenance Utility Versão 14.28.29337.0
> Direitos autorais da Microsoft Corporation. Todos os direitos reservados.
>         "c:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\nmake.exe"
> -f objs/Makefile
> 
> Microsoft (R) Program Maintenance Utility Versão 14.28.29337.0
> Direitos autorais da Microsoft Corporation. Todos os direitos reservados.
> NMAKE : fatal error U1073: não sabe como criar
> 'src/os/win32/ngx_win32_config.h'
> Stop.
> NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual
> Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\nmake.exe"'
> : código de retorno '0x2'
> Stop.
> 
> It seems to me that ngx_win32_config.h was not created.
> Question, is Windows build, is it supported yet?

>From build steps shown and the error message it looks like you are 
trying to use the source tarball from the site to build win32 
version.  This is not going to work, as source tarballs does not
contain win32-specific sources.  You have to obtain sources from 
the repository, as the howto article says:

: Check out nginx sources from the hg.nginx.org repository. For
: example:
:
: hg clone http://hg.nginx.org/nginx

Hope this helps.

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx-devel mailing list