Welcome! Log In Create A New Profile

Advanced

couldn't build Nginx with spdy support on Windows XP

三浦大佑
March 08, 2013 05:18AM
Hi,
I have a problem about spdy support.

I tried building Nginx with SPDY according to the page.
http://nginx.org/en/docs/howto_build_on_win32.html

but, make command was stopped when making ngx_http_spdy.obj.

[Environment]
Nginx: 1.3.14(from svn source)
uname -a: MINGW32_NT-5.1 EBB007K 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys

$ export LIB="C:\\Program Files\\Microsoft Visual Studio
10.0\\VC\\lib;C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Lib"
$ export INCLUDE="C:\\Program Files\\Microsoft Visual Studio
10.0\\VC\\include;C:\\Program Files\\Microsoft
SDKs\\Windows\\v7.1\\Include"
$ export PATH="$PATH:/c/strawberryperl/perl/bin:/c/Program Files/Microsoft
Visual Studio 10.0/VC/bin:/c/Program Files/Microsoft Visual Studio
10.0/Common7/IDE:/c/Program Files/Microsoft SDKs/Windows/v7.1/Bin"

configure command
$auto/configure --with-cc=cl --builddir=obj --prefix=
--conf-path=conf/nginx.conf --pid-path=logs/ngi
nx.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-te
mp-path=temp/fastcgi_temp --with-cc-opt=-DFD_SETSIZE=1024
--with-pcre=obj/lib/pcre-8.32 --with-zlib=
obj/lib/zlib-1.2.7 --with-openssl=obj/lib/openssl-1.0.1e
--with-select_module --with-http_ssl_module
--with-http_spdy_module --with-http_perl_module --with-http_dav_module

make command
$ nmake -f obj/Makefile

....
cl -c -O2 -W4 -WX -nologo -MT -Zi -DFD_SETSIZE=1024
-DNO_SYS_TYPES_H -Yungx_config.h -Fpobj
/ngx_config.pch -I src/core -I src/event -I src/event/modules -I
src/os/win32 -I obj/lib/pcre-8.
32 -I obj/lib/openssl-1.0.1e/openssl/include -I obj/lib/zlib-1.2.7 -I
obj -I src/http -I src/ht
tp/modules -I src/http/modules/perl -I src/mail
-Foobj/src/http/ngx_http_spdy.obj src/http/ngx_h
ttp_spdy.c
ngx_http_spdy.c
src/http/ngx_http_spdy.c(1264) : error C2220: warning treated as error - no
'object' file generated
src/http/ngx_http_spdy.c(1264) : warning C4244: 'function' : conversion
from 'off_t' to 'size_t', po
ssible loss of data
src/http/ngx_http_spdy.c(1642) : warning C4310: cast truncates constant
value
NMAKE : fatal error U1077: '"\Program Files\Microsoft Visual Studio
10.0\VC\bin\cl.EXE"' : return co
de '0x2'
Stop.

No one try to build Nginx with SPDY on Windows XP?
This problem is happened only on Windows?
Please help me.

BTW, why configure command adds "--prefix=openssl" to openssl directory?
I extended zip file to obj/lib/openssl-1.0.1e directory that include
"Configure" file and "include" directory.
But, configure command said "obj/lib/openssl-1.0.1e/openssl/include".
It's prrety strange. So, I create "obj/lib/openssl-1.0.1e/openssl"
directory and copy include directory to that.

Thanks.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

couldn't build Nginx with spdy support on Windows XP

三浦大佑 1030 March 08, 2013 05:18AM

Re: couldn't build Nginx with spdy support on Windows XP

Valentin V. Bartenev 533 March 08, 2013 12:08PM

Re: couldn't build Nginx with spdy support on Windows XP

Valentin V. Bartenev 560 March 10, 2013 01:50PM

Re: couldn't build Nginx with spdy support on Windows XP

Valentin V. Bartenev 376 March 08, 2013 12:08PM

Re: couldn't build Nginx with spdy support on Windows XP

Valentin V. Bartenev 653 March 08, 2013 12:08PM



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

Online Users

Guests: 243
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