User Tools

Site Tools


guides:compiling-obs-debian

Compiling OBS on debian

First of all, install the required dependencies:

sudo apt-get install build-essential cmake git libmbedtls-dev libasound2-dev libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfdk-aac-dev libfontconfig-dev libfreetype6-dev libglvnd-dev libjack-jackd2-dev libjansson-dev libluajit-5.1-dev libnss3-dev libpulse-dev libqt5x11extras5-dev libspeexdsp-dev libswresample-dev libswscale-dev libudev-dev libv4l-dev libvlc-dev libwayland-dev libx11-dev libx264-dev libxcb-shm0-dev libxcb-xinerama0-dev libxcomposite-dev libxinerama-dev pkg-config python3-dev qtbase5-dev qtbase5-private-dev libqt5svg5-dev swig libxcb-randr0-dev libxcb-xfixes0-dev libx11-xcb-dev libxcb1-dev libxss-dev qtwayland5 libgles2-mesa libgles2-mesa-dev libpci-dev

Many useful tools rely on the browser source so well set it up too:

wget https://cdn-fastly.obsproject.com/downloads/cef_binary_4638_linux64.tar.bz2 && tar -xjf ./cef_binary_4638_linux64.tar.bz2

We will then clone the repo and choose which version to build

git clone –recursive https://github.com/obsproject/obs-studio.git cd obs-studio git checkout 27.2.0-rc1

It's now time for the actual building process:

cmake -DUNIX_STRUCTURE=1 -DENABLE_PIPEWIRE=OFF -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_BROWSER=ON -DCEF_ROOT_DIR=“../../cef_binary_4638_linux64” .. make -j$(nproc)

And the last step is to create and install our very own obs-studio package:

sudo checkinstall –default –pkgname=obs-studio –fstrans=no –backup=no –pkgversion=“27.2-rc1-git” –deldoc=yes

guides/compiling-obs-debian.txt · Last modified: 2022/01/31 22:03 by baku