错误1:
make[1]: *** [objs/addon/src/ngx_http_h264_streaming_module.o] Error 1
make[1]: Leaving directory `/home/mock/BUILD_ROOT/BUILD/nginx-0.8.38′
make: *** [build] Error 2
解决办法:
Vim nginx_mod_h264_streaming-2.2.7/src/
ngx_http_streaming_module.c
将如下几行注释
/* TODO: Win32 */
if (r->zero_in_uri)
{
return NGX_DECLINED;
}
错误2:
/home/zhangbin/mserver/nginx/nginx_mod_h264_streaming-2.2.7/src/mp4_reader.c:529:22: error: variable ‘
level_indication
’ set but not used [-Werror=unused-but-set-variable]
profile_compatibility
’ set but not used [-Werror=unused-but-set-variable]
/home/zhangbin/mserver/nginx/nginx_mod_h264_streaming-2.2.7/src/mp4_reader.c:527:22: error: variable ‘
profile_indication
’ set but not used [-
Werror=unused-but-set-variable
]
configuration_version
’ set but not used
[-
Werror
=unused-but-set-variable]
make[2]: *** [objs/addon/src/mp4_reader.o] Error 1
解决方法:
直接修改nginx安装包下/objs/
Makefile文件中的
–
Werror。
去掉红色部分
CC =
gcc
CFLAGS = -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter
-Werror
-g -D_LARGEFILE_SOURCE -DBUILDING_NGINX
CPP =
gcc -E
LINK =
$(CC)