Ubuntu编译OBS

Github page 预构建依赖项 build for windows obsproject.com/wiki/Buil…

运行编译环境

 docker run -itd --restart=always --name ubuntu20.04  -p 12222:22 ubuntu:20.04 /bin/bash

安装依赖

sudo apt install cmake ninja-build pkg-config clang clang-format build-essential curl ccache git -y

下载已编译好的依赖项

 wget https://github.com/obsproject/obs-deps/releases/download/2023-04-12/linux-deps-2023-04-12-x86_64.tar.xz
tar xvf linux-deps-2023-04-12-x86_64.tar.xz -C obs-deps

编译librst

git clone https://code.videolan.org/rist/librist.git
cd librist
mkdir build && cd build 
meson ..
ninja
ninja install 

编译OBS

mkdir /opt/obs_install
git clone --recursive https://github.com/obsproject/obs-studio.git
cd obs-studio
CI/linux/01_install_dependencies.sh
mkdir build && cd build
CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:/root/obs_deps cmake ..  -G Ninja -DUNIX_STRUCTURE=1 -DENABLE_PIPEWIRE=OFF -DENABLE_AJA=0  -DCMAKE_INSTALL_PREFIX=/opt/obs_install  -DENABLE_BROWSER=OFF -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DENABLE_VST=OFF -DCMAKE_BUILD_TYPE=Release

推荐一个零声学院免费教程,个人觉得老师讲得不错,分享给大家:Linux,Nginx,ZeroMQ,MySQL,Redis,
fastdfs,MongoDB,ZK,流媒体,CDN,P2P,K8S,Docker,
TCP/IP,协程,DPDK等技术内容,点击立即学习

你可能感兴趣的:(音视频,ubuntu,linux,运维)