Nitagas
Posts: 1
Joined: Sat Jun 19, 2021 1:23 pm

OBS STUDIO | Instalation error | CMake Error

Sat Jun 19, 2021 1:36 pm

Hi, i want to install OBS studio on my Raspberry pi 4, i'm using this tutorial https://raspberrytips.com/install-obs-s ... pberry-pi/

But when i write this command

Code: Select all

sudo cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..


Iget this error:

Code: Select all

CMake Warning at plugins/obs-browser/FindCEF.cmake:50 (message):
  Could not find the CEF shared library
Call Stack (most recent call first):
  plugins/obs-browser/CMakeLists.txt:13 (find_package)


CMake Error at plugins/obs-browser/CMakeLists.txt:16 (message):
  CEF Not found -- set CEF_ROOT_DIR or set BUILD_BROWSER=OFF.


-- Configuring incomplete, errors occurred!
I tried

Code: Select all

sudo cmake -BUILD_BROWSER=OFF -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..

it is not working and get the same error

How i can fix it?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11447
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: OBS STUDIO | Instalation error | CMake Error

Sun Jun 20, 2021 3:18 pm

This is the issue of following random tutorials, particularly if they haven't put a date on them for when they were written. At least this one includes:
This tutorial doesn't work anymore? Report the issue here, so that I can update it!
OBS now appears to include OBS Browser
obs-browser introduces a cross-platform Browser Source, powered by CEF
https://obsproject.com/wiki/Install-Ins ... directions
If building without browser source:

Code: Select all

  git clone --recursive https://github.com/obsproject/obs-studio.git
  cd obs-studio
  mkdir build && cd build
  cmake -DUNIX_STRUCTURE=1 -DBUILD_BROWSER=OFF ..
  make -j4
  sudo make install
So adding "-DBUILD_BROWSER=OFF" to the cmake line is going to be the key.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Graphics, sound and multimedia”