Question / Help OBS Raspberry Pi Build Instructions

daneallen

New Member
Well this is certainly weird, while I still can't get OBS to run through VNC I was sucessful in getting OBS to run when using the ssh -X option to enable X11 window forwarding.
Code:
ssh -X pi@<my ip>
MESA_GL_VERSION_OVERRIDE=3.3 obs
For posterity the computer than I'm trying to manage OBS from is:
NAME="Ubuntu"​
VERSION="18.04.4 LTS (Bionic Beaver)"​
ID=ubuntu​
ID_LIKE=debian​
PRETTY_NAME="Ubuntu 18.04.4 LTS"​
VERSION_ID="18.04"​
HOME_URL="https://www.ubuntu.com/"​
SUPPORT_URL="https://help.ubuntu.com/"​
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"​
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"​
VERSION_CODENAME=bionic​
UBUNTU_CODENAME=bionic​
 

nmaas87

New Member
@daneallen I cannot reproduce or help with your problem, but I can confirm that this exact version of VNC Viewer (used in Windows) does work with my RPi 4 and OBC. I actually use it via VNC, so most of the time I got nothing attached to the RPi. I would also try to upgrade to the latest RPi version as shown some posts before with apt update / dist-upgrade.
 

Seen_Canary

New Member
@daneallen I'm using the same setup for my streaming camera.

From your description it sounds like X hasn't started locally on the Pi because there is no monitor connected. I resolved this for my purposes by running raspi-config and setting the Boot Options -> Desktop/CLI to boot to Desktop (I'm using autologin but I don't think you have to) and set a specific screen resolution from the Advanced Options -> Resolution list, rather than the default of whatever the plugged in monitor is.

I can then connect by VNC and start or otherwise interact with OBS (I actually have a cron entry to automatically start OBS and start streaming in the morning and another to stop it in the evening, so my interactions are mainly to change scene) without issue.
 

daneallen

New Member
@nmaas87 and @Seen_Canary Thank both! Between both of your posts I was able to get it working through VNC. I updated as per @nmaas87 and configured as per @Seen_Canary... but here's what I think I was really doing WRONG.

I had my VNC viewer pointing to an <ip>:1 because I thought I had to start vncserver from the command line which would display the ip:port combination (I would have to ssh in, start vncserver, then vncviewer connect).

I didn't realize that vncserver was already autostarting at the bare ip address (no port specified). When autostarted correctly this seems to have the requisite X windowing enabled and thus OBS now works natively on my headless rpi4 through VNC. @Seen_Canary, your suggestion really got me clued in on the fact that something was wrong with how my vncserver was starting. It was in fact starting correctly, I was just making a VNC connection to a secondary server point that simply wasn't able to support my request.

In my case, the :1 was my problem.
 

mrdeere

New Member
Just wanted to say thanks for the script and instructions to get obs running, I have it 90% working just as well as I need it to(https://www.twitch.tv/moderator/can_man), Only problem is OBS does not see any audio devices.
I went into the config txt to make sure audio was uncommented, it was.
Im really green when it comes to rpi and Linux, I apologies if this is something trivial.
 

chrismarina

New Member
Hi all,

first of all thanks to @TheMindVirus I've been able to get OBS running on my RasPi4.
Streaming works too, but the only thing I can not figure out is the following:

Started Chromium to play a radio audio stream, which I can hear on the JACK output.
NOW I want to have this System Audio Output for my OBS Video stream, but I can't get it to grab the system audio.

Any idea or hint how I can get this working?

Thanks a lot for any help,
Chris
 

idontknowIamnew

New Member
Thank you for any assistance you are able to provide. I am new to rpi and followed this guy video https://www.youtube.com/watch?v=GVTMZ5PqOAA.
I appeared everything installed fine. He said it would take an hour mine took like 15 mins. I have a rpi3 but I follow it to a T this is my info of install
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed May 27 03:46:48 2020
pi@raspberrypi:~ $ sudo dd if=/dev/zero of=/var/swap2 bs=1024 count=1000000
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB, 977 MiB) copied, 60.3788 s, 17.0 MB/s
pi@raspberrypi:~ $ sudo chmod 600 /var/swap2
pi@raspberrypi:~ $ sudo mkswap /var/swap2
Setting up swapspace version 1, size = 976.6 MiB (1023995904 bytes)
no label, UUID=d8c1ce6a-b89a-4bbd-b435-762f75512f41
pi@raspberrypi:~ $ sudo swapon /var/swap2
pi@raspberrypi:~ $ sudo swapon
NAME TYPE SIZE USED PRIO
/var/swap file 100M 1.5M -2
/var/swap2 file 976.6M 0B -3
pi@raspberrypi:~ $ nano obs.sh
pi@raspberrypi:~ $ chmod +x obs.sh
pi@raspberrypi:~ $ sudo ./obs.sh

install stuff wouldn't fit in post

sudo: cmake: command not found
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
./obs.sh: line 18: obs: command not found
pi@raspberrypi:~ $ obs
-bash: obs: command not found

Can any one help me please?
 

pzamora

New Member
So it looks like you need to install cmake. You can do that by using:
Code:
sudo apt-get install cmake
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 nano  /etc/apt/sources.list
sudo apt-get update
sudo apt-get install checkinstall
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.[/QUOTE]
 

idontknowIamnew

New Member
Thank you got it to install and it works great. Running into a new challenge: OBS is detecting the cameras however not showing image. @ adding source I see
Video Capture Device (V4L2)
add it then see the pix below. Any thoughts?
 

Attachments

idontknowIamnew

New Member
Goal: is to set up these cameras to live view my 3D printer for anywhere @ anytime. All through the PI3. All the videos I have seen are like from the early to mid 2000's and might be out of date.

Here is a list of the devices.

pi@raspberrypi:~ $ lsusb
Bus 001 Device 006: ID 0d3d:0001 Tangtop Technology Co., Ltd HID Keyboard
Bus 001 Device 010: ID 1b3f:2202 Generalplus Technology Inc.
Bus 001 Device 009: ID 1b3f:2202 Generalplus Technology Inc.
Bus 001 Device 008: ID 1b3f:2202 Generalplus Technology Inc.
Bus 001 Device 007: ID 1b3f:2202 Generalplus Technology Inc.
Bus 001 Device 005: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

and I have tried to connect them directly to the PI but it would only read sometimes 1 sometimes 2 of the cameras. I don't think they were getting enough power through the PI3 with the USB Hub the appear to be getting enough juice.

Just found the cameras maker is lksumpt's spy camera

Any guidance or direction would be greatly appreciated.

This is the camera details
 

Attachments

idontknowIamnew

New Member
more info?
pi@raspberrypi:~ $ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.118-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1311 SMP Mon Apr 27 14:21:24 BST 2020
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 8 MiB at 0x37800000
[ 0.000000] On node 0 totalpages: 229376
[ 0.000000] Normal zone: 2016 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 229376 pages, LIFO batch:63
[ 0.000000] random: get_random_bytes called from start_kernel+0xac/0x4b4 with crng_init=0
[ 0.000000] percpu: Embedded 16 pages/cpu s36864 r8192 d20480 u65536
[ 0.000000] pcpu-alloc: s36864 r8192 d20480 u65536 alloc=16*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 227360
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=1366 bcm2708_fb.fbheight=768 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 886284K/917504K available (8192K kernel code, 656K rwdata, 2232K rodata, 1024K init, 831K bss, 23028K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xb8800000 - 0xff800000 (1136 MB)
lowmem : 0x80000000 - 0xb8000000 ( 896 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x(ptrval) - 0x(ptrval) (9184 kB)
.init : 0x(ptrval) - 0x(ptrval) (1024 kB)
.data : 0x(ptrval) - 0x(ptrval) ( 657 kB)
.bss : 0x(ptrval) - 0x(ptrval) ( 832 kB)
 

idontknowIamnew

New Member
0.737257] WARN::hcd_init_fiq:497: MPHI regs_base at b8810000
[ 0.737274] dwc_otg 3f980000.usb: DWC OTG Controller
[ 0.737308] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 0.737346] dwc_otg 3f980000.usb: irq 56, io mem 0x00000000
[ 0.737394] Init: Port Power? op_state=1
[ 0.737400] Init: Power Port (0)
[ 0.737665] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 0.737676] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.737686] usb usb1: Product: DWC OTG Controller
[ 0.737695] usb usb1: Manufacturer: Linux 4.19.118-v7+ dwc_otg_hcd
[ 0.737704] usb usb1: SerialNumber: 3f980000.usb
[ 0.738334] hub 1-0:1.0: USB hub found
[ 0.738385] hub 1-0:1.0: 1 port detected
[ 0.738959] dwc_otg: FIQ enabled
[ 0.738965] dwc_otg: NAK holdoff enabled
[ 0.738970] dwc_otg: FIQ split-transaction FSM enabled
[ 0.738981] Module dwc_common_port init
[ 0.739235] usbcore: registered new interface driver usb-storage
[ 0.739414] mousedev: PS/2 mouse device common for all mice
[ 0.740261] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 0.740502] bcm2835-cpufreq: min=600000 max=1200000
[ 0.740959] sdhci: Secure Digital Host Controller Interface driver
[ 0.740965] sdhci: Copyright(c) Pierre Ossman
[ 0.741357] mmc-bcm2835 3f300000.mmcnr: could not get clk, deferring probe
[ 0.741770] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[ 0.741895] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.743418] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.743610] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.743783] usbcore: registered new interface driver usbhid
[ 0.743789] usbhid: USB HID core driver
[ 0.744752] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[ 0.746271] [vc_sm_connected_init]: start
[ 0.755384] [vc_sm_connected_init]: end - returning 0
[ 0.756487] Initializing XFRM netlink socket
[ 0.756513] NET: Registered protocol family 17
[ 0.756642] Key type dns_resolver registered
[ 0.757428] Registering SWP/SWPB emulation handler
[ 0.758087] registered taskstats version 1
[ 0.758104] Loading compiled-in X.509 certificates
[ 0.764845] uart-pl011 3f201000.serial: cts_event_workaround enabled
[ 0.764927] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2
[ 0.766752] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 0.766762] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[ 0.793082] sdhost: log_buf @ (ptrval) (f7907000)
[ 0.829273] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 0.830856] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.832440] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.835275] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 0.841068] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 0.842374] of_cfs_init
[ 0.842472] of_cfs_init: OK
[ 0.843139] Waiting for root device /dev/mmcblk0p7...
[ 0.901830] mmc0: host does not support reading read-only switch, assuming write-enable
[ 0.904490] mmc0: new high speed SDHC card at address 5048
[ 0.905772] mmcblk0: mmc0:5048 SD32G 28.9 GiB
[ 0.909045] random: fast init done
[ 0.910988] mmcblk0: p1 p2 < p5 p6 p7 p8 p9 >
[ 0.936925] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[ 0.936976] VFS: Mounted root (ext4 filesystem) readonly on device 179:7.
[ 0.944836] devtmpfs: mounted
[ 0.952889] Freeing unused kernel memory: 1024K
[ 0.956797] mmc1: new high speed SDIO card at address 0001
[ 0.967319] Indeed it is in host mode hprt0 = 00021501
[ 1.027717] Run /sbin/init as init process
[ 1.177211] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.177366] Indeed it is in host mode hprt0 = 00001101
[ 1.417535] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
[ 1.417555] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.418261] hub 1-1:1.0: USB hub found
[ 1.418354] hub 1-1:1.0: 5 ports detected
[ 1.631486] systemd[1]: System time before build time, advancing clock.
[ 1.737261] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 1.754540] NET: Registered protocol family 10
[ 1.755878] Segment Routing with IPv6
[ 1.801482] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[ 1.802366] systemd[1]: Detected architecture arm.
[ 1.810219] systemd[1]: Set hostname to <raspberrypi>.
[ 1.867843] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[ 1.867870] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.871045] smsc95xx v1.0.6
 

AndrewT

New Member
I think the pi4 is the way to go if i need a cheap SBC, especially the 8GB Memory version, 4GB meory should work, but don't expect much performance, if i have some budget, i rather using x86 SBC, it will run more smoothly, of cause more ram is very welcome if i need to build a obs on a SBC and using it as a switcher, i pay more on SBC, but compare to a professional switcher, it is much much more cheaper.
 

jameyj

New Member
Anyone else get these errors near end of install? This is running latest Raspberry OS on a fresh build on a Pi 4 4GB. Thanks.

In file included from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/graphics-ffmpeg.c:4:
/usr/local/include/libavformat/avformat.h:880:21: note: declared here
AVCodecContext *codec;
^~~~~
[ 1%] Building C object libobs/CMakeFiles/libobs.dir/graphics/quat.c.o
In file included from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/mmx.h:30,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/sse.h:33,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/sse2.h:35,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/sse-intrin.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/vec4.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/vec3.h:21,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/quat.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/quat.c:18:
/home/pi/ffmpeg-libraries/FFmpeg/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]: *** [libobs/CMakeFiles/libobs.dir/build.make:128: libobs/CMakeFiles/libobs.dir/graphics/quat.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:624: libobs/CMakeFiles/libobs.dir/all] Error 2
[ 2%] Linking C shared library libobsglad.so
[ 2%] Built target glad
[ 2%] Built target obspython_swig_compilation
make: *** [Makefile:152: all] Error 2
[ 1%] Built target glad
[ 1%] Building C object deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o
In file included from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/mmx.h:30,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/sse.h:33,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/sse2.h:35,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/sse-intrin.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/vec4.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/vec3.h:21,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/obs.h:26,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/deps/media-playback/media-playback/media.h:19,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/deps/media-playback/media-playback/decode.c:18:
/home/pi/ffmpeg-libraries/FFmpeg/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
 
Last edited:

skysoulkeeper

New Member
Anyone else get these errors near end of install? This is running latest Raspberry OS on a fresh build on a Pi 4 4GB. Thanks.

In file included from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/graphics-ffmpeg.c:4:
/usr/local/include/libavformat/avformat.h:880:21: note: declared here
AVCodecContext *codec;
^~~~~
[ 1%] Building C object libobs/CMakeFiles/libobs.dir/graphics/quat.c.o
In file included from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/mmx.h:30,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/sse.h:33,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/sse2.h:35,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/sse-intrin.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/vec4.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/vec3.h:21,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/quat.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/quat.c:18:
/home/pi/ffmpeg-libraries/FFmpeg/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]: *** [libobs/CMakeFiles/libobs.dir/build.make:128: libobs/CMakeFiles/libobs.dir/graphics/quat.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:624: libobs/CMakeFiles/libobs.dir/all] Error 2
[ 2%] Linking C shared library libobsglad.so
[ 2%] Built target glad
[ 2%] Built target obspython_swig_compilation
make: *** [Makefile:152: all] Error 2
[ 1%] Built target glad
[ 1%] Building C object deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o
In file included from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/mmx.h:30,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/sse.h:33,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/simde/sse2.h:35,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/../util/sse-intrin.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/vec4.h:22,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/graphics/vec3.h:21,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/libobs/obs.h:26,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/deps/media-playback/media-playback/media.h:19,
from /home/pi/ffmpeg-libraries/FFmpeg/obs-studio/deps/media-playback/media-playback/decode.c:18:
/home/pi/ffmpeg-libraries/FFmpeg/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
I have same problem:

[ 1%] Built target glad
[ 1%] Building C object deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o
In file included from /home/pi/Downloads/obs-studio/libobs/graphics/../util/simde/mmx.h:30,
from /home/pi/Downloads/obs-studio/libobs/graphics/../util/simde/sse.h:33,
from /home/pi/Downloads/obs-studio/libobs/graphics/../util/simde/sse2.h:35,
from /home/pi/Downloads/obs-studio/libobs/graphics/../util/sse-intrin.h:22,
from /home/pi/Downloads/obs-studio/libobs/graphics/vec4.h:22,
from /home/pi/Downloads/obs-studio/libobs/graphics/vec3.h:21,
from /home/pi/Downloads/obs-studio/libobs/obs.h:26,
from /home/pi/Downloads/obs-studio/deps/media-playback/media-playback/media.h:19,
from /home/pi/Downloads/obs-studio/deps/media-playback/media-playback/decode.c:18:
/home/pi/Downloads/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
./install_obs.sh: line 18: obs: command not found


uname -a
Linux raspberrypi 4.19.127v64 #1 SMP PREEMPT Fri Jun 12 22:09:51 CEST 2020 aarch64 GNU/Linux
Raspberry Pi 4 Model B Rev 1.4 8GB
OS: Raspbian GNU/Linux 10 (buster) aarch64

Manually install


dont help ((
 

keeshux

New Member
You either install libsimde-dev from testing and do some adjustments to cmake and includes, or clone the simde repository from GitHub and copy/paste the "simde" directory into libobs. There's a README in libobs/simde about what to patch, make sure to read it.
 

jameyj

New Member
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...
 

skysoulkeeper

New Member
Thx 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
 

fitipe

New Member
hi there!

I'm newbie to programming so, please, take it easy with me x.x

I've tried to install obs-studio on a rpi4 4gb / newest version of "raspberry pi os" using both scripts @TheMindVirus and @skysoulkeeper kindly provided, but I keep getting this same error:


Receiving objects: 100% (11506/11506), 17.55 MiB | 2.02 MiB/s, done.
Resolving deltas: 100% (9070/9070), done.
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler

"/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/pi/Downloads/obs-studio/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a16ab/fast"
/usr/bin/make -f CMakeFiles/cmTC_a16ab.dir/build.make CMakeFiles/cmTC_a16ab.dir/build
make[1]: Entering directory '/home/pi/Downloads/obs-studio/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a16ab.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_a16ab.dir/testCCompiler.c.o -c /home/pi/Downloads/obs-studio/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_a16ab
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a16ab.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_a16ab.dir/testCCompiler.c.o -o cmTC_a16ab
/usr/bin/ld: 1: /usr/bin/ld: -lmmal_util: not found
collect2: error: ld returned 127 exit status
make[1]: *** [CMakeFiles/cmTC_a16ab.dir/build.make:87: cmTC_a16ab] Error 1
make[1]: Leaving directory '/home/pi/Downloads/obs-studio/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_a16ab/fast] Error 2




CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:8 (project)


-- Configuring incomplete, errors occurred!


Do someone knows what I should do?
 
Top