Skip to main content

Obs Build and Install

· loading · loading · · ·
Docs Linux
Table of Contents
My Setup - This article is part of a series.
Part 4: This Article

obs-studio build in debian 12 from source.

Build in Debian

  1. Install Dependencies in debian
# Build system dependencies
sudo apt install cmake ninja-build pkg-config clang clang-format build-essential curl ccache git zsh
# OBS dependencies (core):
sudo apt install libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libx264-dev libcurl4-openssl-dev libmbedtls-dev libgl1-mesa-dev libjansson-dev libluajit-5.1-dev python3-dev libx11-dev libxcb-randr0-dev libxcb-shm0-dev libxcb-xinerama0-dev libxcb-composite0-dev libxcomposite-dev libxinerama-dev libxcb1-dev libx11-xcb-dev libxcb-xfixes0-dev swig libcmocka-dev libxss-dev libglvnd-dev libgles2-mesa libgles2-mesa-dev libwayland-dev librist-dev libsrt-openssl-dev libpci-dev libpipewire-0.3-dev libqrcodegencpp-dev
# OBS Qt6 dependencies (UI):
sudo apt install \
       qt6-base-dev \
       qt6-base-private-dev \
       libqt6svg6-dev \
       qt6-wayland \
       qt6-image-formats-plugins
  1. Build source
# OBS Source Code
git clone --recursive https://github.com/obsproject/obs-studio.git
# CEF Source
wget https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2
tar xf cef_binary_5060_linux64.tar.bz2

cd obs-studio
# Config
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE="Release" \
        -DCEF_ROOT_DIR="../cef_binary_5060_linux64" \
        -DENABLE_AJA=0  \
        -DENABLE_LIBFDK=1 \
        -DQT_VERSION=6 
# build
cmake --build build -j$(nproc)

# deb package
cmake --build build --target package -j$(nproc)
  1. Install Builds
sudo apt remove obs-studio && sudo apt autoremove
sudo apt-mark unhold obs-studio 
sudo dpkg -i ./build/*.deb

Official Build Instructions

PLUGINS

  1. URL-SOURCE
  2. OBS-NDI
  3. ADVANCE-SCENE-SWITCHER
  4. MOVE-TRANSITION
  5. OBS-VOCAL
Reply by Email
JaiGanesh
Author
JaiGanesh
welder
My Setup - This article is part of a series.
Part 4: This Article

Related

Welcome
· loading · loading
Docs Linux
Welcome
fav Git Repo
· loading · loading
Docs
fav git repo.
fav color
· loading · loading
Docs
most used color in our areas.