当前位置:论坛首页 > Linux面板 > 求助

【已解决】nginx 同时安装rtmp和http_flv模块报错

发表在 Linux面板2023-5-6 11:22 [复制链接] 1 1048

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:7.9.9
系统版本:CentOS 7.9.2009 x86_64
问题描述:同时编译安装nginx-rtmp-module 和 nginx-http-flv-module 失败
相关截图(日志、错误):

/www/server/nginx-http-flv-module/hls/ngx_rtmp_hls_module.c: In function ‘ngx_rtmp_hls_video’:
/www/server/nginx-http-flv-module/hls/ngx_rtmp_hls_module.c:1958:13: warning: implicit declaration of function ‘ngx_rtmp_n3_to_h4’ [-Wimplicit-function-declaration]
             len = ngx_rtmp_n3_to_h4((u_char *) &rlen);
             ^
/www/server/nginx-http-flv-module/hls/ngx_rtmp_hls_module.c:1977:25: error: ‘NGX_RTMP_NALU_SPS’ undeclared (first use in this function)
         if (nal_type >= NGX_RTMP_NALU_SPS && nal_type <= NGX_RTMP_NALU_AUD) {
                         ^
/www/server/nginx-http-flv-module/hls/ngx_rtmp_hls_module.c:1977:25: note: each undeclared identifier is reported only once for each function it appears in
/www/server/nginx-http-flv-module/hls/ngx_rtmp_hls_module.c:1977:58: error: ‘NGX_RTMP_NALU_AUD’ undeclared (first use in this function)
         if (nal_type >= NGX_RTMP_NALU_SPS && nal_type <= NGX_RTMP_NALU_AUD) {
                                                          ^
/www/server/nginx-http-flv-module/hls/ngx_rtmp_hls_module.c:1986:22: error: ‘NGX_RTMP_NALU_SLICE’ undeclared (first use in this function)
                 case NGX_RTMP_NALU_SLICE:
                      ^
/www/server/nginx-http-flv-module/hls/ngx_rtmp_hls_module.c:1987:22: error: ‘NGX_RTMP_NALU_IDR’ undeclared (first use in this function)
                 case NGX_RTMP_NALU_IDR:
                      ^
/www/server/nginx-http-flv-module/hls/ngx_rtmp_hls_module.c:1988:22: error: ‘NGX_RTMP_NALU_SEI’ undeclared (first use in this function)
                 case NGX_RTMP_NALU_SEI:
                      ^
/www/server/nginx-http-flv-module/hls/ngx_rtmp_hls_module.c:2059:27: error: ‘NGX_RTMP_FRAME_IDR’ undeclared (first use in this function)
     frame.key = (ftype == NGX_RTMP_FRAME_IDR);
                           ^
make[1]: *** [objs/addon/hls/ngx_rtmp_hls_module.o] Error 1
make[1]: Leaving directory `/www/server/nginx/src'
make: *** [install] Error 2
使用道具 举报 只看该作者 回复
发表于 2023-5-6 13:08:38 | 显示全部楼层
已解决,nginx-http-flv-module 模块中包含nginx-rtmp-module模块的功能只需安装nginx-http-flv-module 模块即可
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表