make: *** [Makefile:152: all] Error 2
[ 1%] Built target glad
[ 2%] Building C object deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o
In file included from /home/pi/obs-studio/libobs/graphics/../util/simde/mmx.h:30,
from /home/pi/obs-studio/libobs/graphics/../util/simde/sse.h:33,
from /home/pi/obs-studio/libobs/graphics/../util/simde/sse2.h:35,
from /home/pi/obs-studio/libobs/graphics/../util/sse-intrin.h:22,
from /home/pi/obs-studio/libobs/graphics/vec4.h:22,
from /home/pi/obs-studio/libobs/graphics/vec3.h:21,
from /home/pi/obs-studio/libobs/obs.h:26,
from /home/pi/obs-studio/deps/media-playback/media-playback/media.h:19,
from /home/pi/obs-studio/deps/media-playback/media-playback/decode.c:18:
/home/pi/obs-studio/libobs/graphics/../util/simde/simde-common.h:643:10: fatal error: simde-math.h: No such file or directory
#include "simde-math.h"
^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [deps/media-playback/CMakeFiles/media-playback.dir/build.make:63: deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:215: deps/media-playback/CMakeFiles/media-playback.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
./obs.sh: line 18: obs: command not found
I have similar issue. Any thoughts on a fix?Hi
I am new to the raspberry pi and installing things on it. I have followed the instructions & also the youtube video on this & i am getting an error message and the installation fails. i was wondering if anything was obvious that i am doing wrong
I hope someone can help
Or add that step to the online instructions or at least a note to this effect.I was able to install OBS by cloning simde from GitHub and then copying simde-math.h from /pi/simde and pasting it into /pi/obs-studio/libobs/util/simde. You can do this right before running sudo make -j4. Now if I could only get OBS to recognize my Auvidea B101 on CS-2 with the Toshiba drivers...
With just a little slight modification I was able to get past the error by cloning the git and then while the script was running, as the directory has to be created before the copy. sudo cp ~/simde/simde/simde-math.h ~/obs-studio/libobs/util/simdeThx keeshux & jameyj !
So working script will be:
#!/bin/bash
#File: installobs.sh (sudo chmod +x installobs.sh)
#!!! Please run from /home/pi/Downloads (cd /home/pi/Downloads)
cd /home/pi/Downloads
sudo apt-get --allow-releaseinfo-change update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
sudo apt-get -y 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 l
ibfreetype6-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 p
kg-config python3-dev qtbase5-dev libqt5svg5-dev swig
sudo wget http://ftp.uk.debian.org/debian/pool/non-free/f/fdk-aac/libfdk-aac1_0.1.4-2+b1_armhf.deb
sudo wget http://ftp.uk.debian.org/debian/pool/non-free/f/fdk-aac/libfdk-aac-dev_0.1.4-2+b1_armhf.deb
sudo dpkg -i libfdk-aac1_0.1.4-2+b1_armhf.deb
sudo dpkg -i libfdk-aac-dev_0.1.4-2+b1_armhf.deb
sudo git clone --recursive https://github.com/obsproject/obs-studio.git
# Fix simde-math.h: No such file or directory
sudo git clone https://github.com/simd-everywhere/simde.git
sudo cp /home/pi/Downloads/simde/simde/simde-math.h /home/pi/Downloads/obs-studio/libobs/util/simde
#
cd obs-studio
sudo mkdir build && cd build
sudo cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
sudo make -j4
sudo make install
obs #only need to run this command from now on
exit 0
chmod +x mkobs.sh
./mkobs.sh
chmod +x installobs.sh
./installobs.sh
Installs and works well in Ubuntu 20.04 mate. Thankyou. Any possibility to force a virtul webcam per instructions "Creating a killer OBS installation on Ubuntu Linux for teaching & streaming into a video conference" byThanks for the script, it's saved me from a lot of digging around :D
I'd just like to point out that running literally every command in your script as root (with sudo) is excessive and dangerous. The only things that need to be run with sudo are the things that modify your system - the apt and dpkg commands, and the make install right near the end. Using it for everything else means that you need to be root to modify anything downloaded here, but also opens you up to security bugs etc in the commands, since they all operate on data received from the internet.
I've attached a modified version of the script including the simde-math.h fix with the unneccessary sudo commands removed and with a few small changes to make it work a little more generically (this will use an obs-build directory in the current user's home rather than hardcoding /home/pi/Downloads). The libfdk-aac deps are still a little unsafe though because we're not verifying them before installation like apt would do.
To use it, download the script, rename it to mkobs.sh, then run:
Code:chmod +x mkobs.sh ./mkobs.sh
Hi,
Has someone get this to run on the 64bit version of raspi os? The scrips failed if i tryed. I realy want to use the 64bit version otherwise, the 8 gb ram are bot supported. Also tryed it on Ubuntu, i got obs to run but not Browser Source (realy need it for a webcam)
Thanks. Looking forward to trying this out.I made some changes to the obs source code so that it can be cloned and installed for arm/raspberry pi. Also edited the ndi and websocket plugins so you can install those as well.
Repos:
GitHub - venepe/obs-studio: OBS Studio - Free and open source software for live streaming and screen recording
OBS Studio - Free and open source software for live streaming and screen recording - venepe/obs-studiogithub.comGitHub - venepe/obs-ndi: NewTek NDI integration for OBS Studio
NewTek NDI integration for OBS Studio. Contribute to venepe/obs-ndi development by creating an account on GitHub.github.comScript to install obs with the plugins:GitHub - venepe/obs-websocket: Remote-control OBS Studio through WebSockets
Remote-control OBS Studio through WebSockets. Contribute to venepe/obs-websocket development by creating an account on GitHub.github.com
GitHub - venepe/install-obs-raspberry-pi
Contribute to venepe/install-obs-raspberry-pi development by creating an account on GitHub.github.com
Script is inspired from @eltariel
To use it, download the script, rename it to installobs.sh, then run:
Code:chmod +x installobs.sh ./installobs.sh
When running the last command ofIt is possible to build OBS Studio for Linux from source on the Raspberry Pi 3 upwards!
Disclaimer: Please make sure you understand what this code does first,
then you may run it at your own risk. As versions change, problems may arise.
The scripts take a long time, especially on underpowered hardware and slow internet.
The pi has very limited memory, so it is essential to make a swapfile first:
Code:sudo dd if=/dev/zero of=/var/swap2 bs=1024 count=1000000 sudo chmod 600 /var/swap2 sudo mkswap /var/swap2 sudo swapon /var/swap2 sudo swapon
Here is an automated script that downloads, builds and installs OBS on the pi:
Code:#!/bin/bash #File: installobs.sh (sudo chmod +x installobs.sh) #!!! Please run from /home/pi/Downloads (cd /home/pi/Downloads) sudo apt-get --allow-releaseinfo-change update sudo DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade sudo apt-get -y 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 sudo wget http://ftp.uk.debian.org/debian/pool/non-free/f/fdk-aac/libfdk-aac1_0.1.4-2+b1_armhf.deb sudo wget http://ftp.uk.debian.org/debian/pool/non-free/f/fdk-aac/libfdk-aac-dev_0.1.4-2+b1_armhf.deb sudo dpkg -i libfdk-aac1_0.1.4-2+b1_armhf.deb sudo dpkg -i libfdk-aac-dev_0.1.4-2+b1_armhf.deb sudo git clone --recursive https://github.com/obsproject/obs-studio.git cd obs-studio sudo mkdir build && cd build sudo cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr .. sudo make -j4 sudo make install obs #only need to run this command from now on exit 0
Hope you find this useful!
On the Pi 4 you have to use the commandWhen running the last command of
obs
It still shows the "Failed to initialize video. Your GPU may not be supported or you graphics driver may need to be updated." prompt. I'm using RPi4.
[/QUOTE]So it looks like you need to install cmake. You can do that by using:
I had to do this as well and I also needed to install the checkinstall command but that required I edit the sources:Code:sudo apt-get install cmake
Once you do all that you will need to remove all previously created folders by the script, and run them from the beginning once again.Code:sudo nano /etc/apt/sources.list sudo apt-get update sudo apt-get install checkinstall