zhouchangxun/ngx_healthcheck_module

windows10, msys1.0,vc2019 c/c++,windows 10 sdk编译报错

chenglin321 opened this issue · 0 comments

windows编译报错
编译环境:
msys1.0
git
perl
windows 10 sdk
vc2019 c/c++生成工具
nginx_1.16

操作步骤:
1.下载MSYS-1.0.11
https://nchc.dl.sourceforge.net/project/mingw/MSYS/Base/msys-core/msys-1.0.11/MSYS-1.0.11.exe
2.下载nginx , ngx_healthcheck_module
git clone https://github.com/nginx/nginx.git
git clone https://github.com/zhouchangxun/ngx_healthcheck_module.git

  1. Create a build and lib directories, and unpack zlib, PCRE and OpenSSL libraries sources into lib directory:
    mkdir objs
    mkdir objs
    mkdir objs/lib
    cd objs/lib
    tar -xzf ../../pcre-8.44.tar.gz
    tar -xzf ../../zlib-1.2.11.tar.gz
    tar -xzf ../../openssl-1.1.1g.tar.gz

  2. #打补丁
    cd nginx/;
    patch -p1 < ../ngx_healthcheck_module/nginx_healthcheck_for_nginx_1.16+.patch

5.编译
auto/configure
--with-cc=cl
--with-debug
--prefix=
--conf-path=conf/nginx.conf
--pid-path=logs/nginx.pid
--http-log-path=logs/access.log
--error-log-path=logs/error.log
--sbin-path=nginx.exe
--http-client-body-temp-path=temp/client_body_temp
--http-proxy-temp-path=temp/proxy_temp
--http-fastcgi-temp-path=temp/fastcgi_temp
--http-scgi-temp-path=temp/scgi_temp
--http-uwsgi-temp-path=temp/uwsgi_temp
--with-cc-opt=-DFD_SETSIZE=1024
--with-pcre=objs/lib/pcre-8.44
--with-zlib=objs/lib/zlib-1.2.11
--with-openssl=objs/lib/openssl-OpenSSL_1_1_1g
--with-openssl-opt=no-asm
--with-http_ssl_module
--with-stream --add-module=../ngx_healthcheck_module/
6. windows上执行:
nmake

nmake报错,具体报错信息
image