Welcome! Log In Create A New Profile

Advanced

Re: Windows build (nginx-19.8)

Maxim Dounin
March 10, 2021 09:06PM
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/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Windows build (nginx-19.8)

Ranier Vilela 525 March 10, 2021 08:30PM

Re: Windows build (nginx-19.8)

Maxim Dounin 190 March 10, 2021 09:06PM

Re: Windows build (nginx-19.8)

Ranier Vilela 197 March 10, 2021 09:36PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready