[运维]在Ubuntu20.4下编译ZLMediaKit

系统环境

系统版本:Ubuntu20.4

安装依赖

sudo apt-get update && \
        sudo apt-get install -y --no-install-recommends \
        build-essential \
        cmake tzdata libssl-dev\
        git curl vim wget \
        libmysqlclient-dev \
        libx264-dev \
        libfaac-dev \
        gcc g++ gdb\
        libssl-dev libsdl-dev libavcodec-dev libavutil-dev\
        ca-certificates openssl ffmpeg &&\
        git clone https://gitee.com/mirrors/libsrtp.git && cd libsrtp && git checkout v2.2.0 && \
        ./configure --enable-openssl && make && sudo make install 

编译ZLMediaKit

export zlmGitUrl="https://gitee.com/xia-chu/ZLMediaKit"
git clone --depth=1 "${zlmGitUrl}"
cd ZLMediaKit
git submodule update --init --recursive && \
        mkdir -p build release/linux/Release/ &&\
        cd build && \
        cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_WEBRTC=true -DENABLE_TESTS=false .. && \
        make -j8

本人可接wvp+zlm调试

你可能感兴趣的:(运维,GB28181,运维,git,linux)