赞
踩
sudo yum -y install gcc
sudo yum -y install gcc-c++
sudo yum -y install cmake
sudo yum install openssl openssl-devel
sudo yum install libssl-dev
sudo yum install libsdl-dev
sudo yum install libavcodec-dev
sudo yum install libavutil-dev
sudo yum install ffmpeg
mkdir /opt/cmake
cd /opt/cmake/
wget https://cmake.org/files/v3.26/cmake-3.26.4.tar.gz
tar -xzvf cmake-3.26.4.tar.gz
cd cmake-3.26.4
./configure --prefix=/usr/local/cmake
make && make install
mv /usr/bin/cmake /usr/bin/cmake_bak
ln -s /usr/local/cmake/bin/cmake /usr/bin/cmake
cmake -version
# 国内用户推荐从 Gitee 下载
git clone --depth 1 https://gitee.com/xia-chu/ZLMediaKit
cd ZLMediaKit
# 初始化子模块 (必须执行)
git submodule update --init
cd ZLMediaKit
mkdir build
cd build
cmake ..
make -j4
sudo chmod 777 Mediaserver
sudo ./Mediaserver
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。