回馈具有开源精神以及乐于分享知识的各位同道中人
nginx:1.15.7(http://nginx.org/en/download.html)
note:单独下载的源码包里包含makefile,但是还需要下载最新的源码,因为官方download给的链接下载的文件里面会缺少很多源码。vs编译的时候会提示无法生成相应.o文件。所以要下载最新源码覆盖进去。
###########################################################################################################
nginx-rtmp-moudle:1.1.4(https://github.com/arut/nginx-rtmp-module)
pcre:pcre-8.42(http://www.pcre.org/)
zlib:zlib-1.2.11(http://www.zlib.net/)
openssl:openssl-1.0.2p(http://www.openssl.org/)
步骤:
在nginx文件目录中新建objs,然后在其内再新建lib文件夹,把上面4个源码包放进去。
然后用mingw32,或msys2的mingw32,cd到nginx目录进行配置生成文件会放置到objs目录下。
###########################################################################################################
./configure \
--with-cc=cl \
--with-debug \
--prefix= \
--conf-path=conf/nginx.conf \
--pid-path=lo