msys2编译nginx模块rtmp

下载一些必要库

https://github.com/arut/nginx-rtmp-module
https://ftp.pcre.org/pub/pcre/
http://www.zlib.net/
http://distfiles.macports.org/openssl/
https://github.com/nginx/nginx
http://distfiles.macports.org/openssl11/

 

安装命令

./configure --with-openssl-opt=no-asm \
--with-cc-opt=-DFD_SETSIZE=1024 \
--with-cc=cl \
--with-select_module \
--with-http_sub_module \
--with-http_v2_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-http_realip_module \
--with-http_dav_module \
--with-http_gunzip_module \
--with-http_addition_module \
--without-http_rewrite_module \
--prefix=. \
--sbin-path=nginx.exe \
--builddir=objs \
--with-http_ssl_module \
--with-mail_ssl_module \
--with-pcre=objs/pcre-8.43 \
--with-zlib=objs/zlib-1.2.11 \
--with-openssl=objs/openssl-1.1.0k \
--with-mail \
--with-http_secure_link_module \
--with-http_random_index_module \
--conf-path=conf/nginx.conf \
--pid-path=logs/nginx.pid \
--http-log-path=logs/access.log \
--error-log-path=logs/error.log \
--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 \
--add-module=objs/nginx-rtmp-module \
--with-stream

最后 make && make install 

注意 msys2 不支持 advapi32.lib  ws2_32.lib 检查生成的Makefile 存在则删掉

 

记录一下 方便下次编译新版本用

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值