arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.45k stars 3.51k forks source link

install problem #1485

Open ccc081977 opened 4 years ago

ccc081977 commented 4 years ago

hello my name is carlos, I am trying to install the nginx-rtmp-module

Install required packages

sudo apt-get install build-essential libpcre3-dev libssl-dev zlib1g-dev

Download NGINX source http://nginx.org/download/

wget http://nginx.org/download/nginx-1.15.2.tar.gz tar -zxvf nginx-1.15.2.tar.gz

Download NGINX RTMP module source https://github.com/arut/nginx-rtmp-module

git clone https://github.com/arut/nginx-rtmp-module.git Compile NGINX with the RTMP module

cd nginx-1.15.2 ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module make

But when I do the make it gives me this error:

../nginx-rtmp-module/ngx_rtmp_eval.c: In function ‘ngx_rtmp_eval’: ../nginx-rtmp-module/ngx_rtmp_eval.c:160:17: error: this statement may fall through [-Werror=implicit-fallthrough=] 160 | switch (c) { | ^~ ../nginx-rtmp-module/ngx_rtmp_eval.c:170:13: note: here 170 | case ESCAPE: | ^~~~ cc1: all warnings being treated as errors make[1]: [objs/Makefile:1349: objs/addon/nginx-rtmp-module/ngx_rtmp_eval.o] Error 1 make[1]: se sale del directorio '/home/adminvitoria/nginx-1.15.2' make: [Makefile:8: build] Error 2

any can help me please!!!!!!

alxgrk commented 4 years ago

You can probably fix it by doing what is mentioned here: https://github.com/arut/nginx-rtmp-module/issues/1283#issuecomment-439217412