rtmpdump编译

1.创建终极目录
mkdir rtmpobj


1安装 OpenSSL
cd /openssl-1.0.1f
CC=arm-hisiv300-linux-gcc ./config no-asm shared --prefix=../rtmpobj
make


2.安装zlib
cd zlib-1.2.8/
CC=arm-hisiv300-linux-gcc ./configure  --prefix=../rtmpobj
make 
make install




3.将头文件集中 动态库集中
cd /openssl-1.0.1f
cp include/ ssl/ crypto/ e_os2.h ../rtmpobj/ -r
cp lib*.so* ../rtmpobj/lib/


4.
修改rtmpdump/librtmp makefile
CROSS_COMPILE=arm-hisiv300-linux-

新增:
XCFLAGS=-I/root/work/code/normal_record/rtmp/rtmpobj/include -L/root/work/code/normal_record/rtmp/rtmpobj/lib


修改
prefix=/root/work/code/normal_record/rtmp/rtmpobj
librtmp$(SO_EXT): $(OBJS)
$(CC) $(SO_LDFLAGS) $(LDFLAGS) $(XCFLAGS) -o $@ $^ $> $(CRYPTO_LIB)
ln -sf $@ librtmp.$(SOX)
-cp $@ librtmp.$(SOX) ../../rtmpobj/lib




修改rtmpdump下的 makefile
CROSS_COMPILE=arm-hisiv300-linux-

XCFLAGS=-I/root/work/code/normal_record/rtmp/rtmpobj/include -I/root/work/code/normal_record/rtmp/rtmpobj/include/librtmp

XLDFLAGS=-L/root/work/code/normal_record/rtmp/rtmpobj/lib/librtmp

 

 

参考https://blog.csdn.net/chengkai_/article/details/52061960

你可能感兴趣的:(嵌入式,nginx,rtmp)