Thanks 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
So, I've followed your instructions and my errors start here where you can see below. Any thoughts on how to fix this?
cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX="$PREFIX" ..
-- OBS_VERSION: 26.1.2-200-g848395f32-modified
-- No Native SSE2 SIMD Support - Using SIMDE
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.a (found version "58.91.100") found components: avcodec avdevice avutil avformat
-- Scripting: Luajit supported
-- Scripting: Python 3 supported
-- Using system Jansson library
-- XCB[XCB]: Found component XCB
-- Found XCB: /usr/lib/arm-linux-gnueabihf/libxcb.so found components: XCB
-- Found Wayland: /usr/lib/arm-linux-gnueabihf/libwayland-client.so;/usr/lib/arm-linux-gnueabihf/libwayland-server.so;/usr/lib/arm-linux-gnueabihf/libwayland-egl.so;/usr/lib/arm-linux-gnueabihf/libwayland-cursor.so
-- Found FFmpeg: /usr/local/lib/../lib/libavformat.a (found version "58.45.100") found components: avformat avutil swscale swresample avcodec
-- XCB[XINPUT]: Found component XINPUT
-- Found XCB: /usr/lib/arm-linux-gnueabihf/libxcb-xinput.so found components: XINPUT
-- XCB[XCB]: Found component XCB
-- XCB[RANDR]: Found component RANDR
-- XCB[RENDER]: Found component RENDER
-- XCB[SHAPE]: Found component SHAPE
-- XCB[SHM]: Found component SHM
-- XCB[XFIXES]: Found component XFIXES
-- XCB[XINPUT]: Found component XINPUT
-- XCB[XINERAMA]: Found component XINERAMA
-- Found XCB: /usr/lib/arm-linux-gnueabihf/libxcb-xinput.so;/usr/lib/arm-linux-gnueabihf/libxcb.so;/usr/lib/arm-linux-gnueabihf/libxcb-randr.so;/usr/lib/arm-linux-gnueabihf/libxcb-render.so;/usr/lib/arm-linux-gnueabihf/libxcb-shape.so;/usr/lib/arm-linux-gnueabihf/libxcb-shm.so;/usr/lib/arm-linux-gnueabihf/libxcb-xfixes.so;/usr/lib/arm-linux-gnueabihf/libxcb-xinput.so;/usr/lib/arm-linux-gnueabihf/libxcb-xinerama.so
-- Found PulseAudio - Audio Monitor enabled
-- Using libavcodec for image loading in libobs
-- Found Wayland: /usr/lib/arm-linux-gnueabihf/libwayland-client.so;/usr/lib/arm-linux-gnueabihf/libwayland-server.so;/usr/lib/arm-linux-gnueabihf/libwayland-egl.so;/usr/lib/arm-linux-gnueabihf/libwayland-cursor.so found components: Client
-- XCB[XCB]: Found component XCB
-- XCB[RANDR]: Found component RANDR
-- XCB[SHM]: Found component SHM
-- XCB[XFIXES]: Found component XFIXES
-- XCB[XINERAMA]: Found component XINERAMA
-- Found XCB: /usr/lib/arm-linux-gnueabihf/libxcb.so;/usr/lib/arm-linux-gnueabihf/libxcb-randr.so;/usr/lib/arm-linux-gnueabihf/libxcb-shm.so;/usr/lib/arm-linux-gnueabihf/libxcb-xfixes.so;/usr/lib/arm-linux-gnueabihf/libxcb-xinerama.so found components: XCB RANDR SHM XFIXES XINERAMA
-- Found jack: /usr/lib/arm-linux-gnueabihf/libjack.so
-- Using the bundled VST header.
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.a (found version "58.91.100") found components: avcodec avfilter avdevice avutil swscale avformat swresample
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.a (found version "58.91.100") found components: avcodec avutil avformat
-- Checking for module 'libftl'
-- No package 'libftl' found
-- Found ftl-sdk: ftl outputs enabled
-- Configuring done
CMake Error at UI/CMakeLists.txt:378 (add_executable):
Target "obs" links to target "Qt5::GuiPrivate" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at UI/CMakeLists.txt:378 (add_executable):
Target "obs" links to target "Qt5::GuiPrivate" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
-- Generating done
-- Build files have been written to: /home/pi/obs-build/obs-studio/build