How to install OBS on a Raspberry Pi?
Since OBS is not supported on the Raspberry Pi, there are no official binaries available and you're left with 3 options.
Various arcticles on the internet have stories on how to do this, but I found them outdated or not complete. Likely since OBS is still in active development and requirements change over time. These steps were applied in January 2023 and do not use any special branches.
Installation build tools and development libraries
sudo apt install build-essential checkinstall cmake git libmbedtls-dev libasound2-dev libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfontconfig1-dev libfreetype6-dev libgl1-mesa-dev libjack-jackd2-dev libjansson-dev libluajit-5.1-dev libpulse-dev libqt5x11extras5-dev libspeexdsp-dev libswresample-dev libswscale-dev libudev-dev libv4l-dev libvlc-dev libx11-dev libx11-xcb1 libx11-xcb-dev libxcb-xinput0 libxcb-xinput-dev libxcb-randr0 libxcb-randr0-dev libxcb-xfixes0 libxcb-xfixes0-dev libx264-dev libxcb-shm0-dev libxcb-xinerama0-dev libxcomposite-dev libxinerama-dev pkg-config python3-dev qtbase5-dev libqt5svg5-dev swig libwayland-dev qtbase5-private-dev libpci-dev tclsh libssl-dev libxcb-composite0-dev libva-dev mesa-common-dev v4l2loopback-dkms
Install SRTgit clone https://github.com/Haivision/srt.gitcd srt./configuresudo make install
Install RISTgit clone https://github.com/tsduck/rist-installer.gitcd rist-installercd deb./install-prerequisites.sh./build.shsudo make install
Install OBSgit clone --recursive https://github.com/obsproject/obs-studio.git
Open up obs-studio/CMakeLists.txt and add the following line at the top (line 2 or around there): add_definitions(-w)
This will configure the make files to ignore compiler warnings, otherwise they are treated as errors resulting in a failed compilation.
cd obs-studiomkdir build && cd buildcmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_PIPEWIRE=OFF -DBUILD_BROWSER=OFF ..make -j4sudo make install
Starting OBS
When launching OBS from the start menu, you might see a message about unsupported video drivers, you can get around this by starting OBS from a terminal window.
MESA_GL_VERSION_OVERRIDE=3.3 obs