Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chenglin321 opened this issue Jul 13, 2020 · 0 comments
Open

Comments

@chenglin321
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant