ubuntu20.04+live555搭建rtsp推流服务器
文章目录
1.下载live555并解压
wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz
tar xzf live555-latest.tar.gz
# 解压后修改权限
sudo chmod -R 777 live
2. 编译
# 编辑config.linux-64bit,在第一行最后加上-DNO_STD_LIB,不然会报error: ‘struct std::atomic_flag’ has no member named ‘test’
cd live
vim config.linux-64bit
COMPILE_OPTS = $(INCLUDES) -m64 -fPIC -I/usr/local/include -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS