obs-backgroundremoval plugin on Slackware 15

Compile:

From https://github.com/royshil/obs-backgroundremoval#linux 


QT_VERSION=5 .github/scripts/build-linux --skip-deps


/usr/bin/ld: libplugin-support.a(plugin-support.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


Edit cmake/linux/compilerconfig.cmake under # gcc options for C, add: -shared and -fPIC to the list and run the build-linux command again.


Install:

Copy the contents of obs-backgroundremoval/release/RelWithDebInfo to /usr/lib64/


Further notes:

I enabled aac in ffmpeg for obs-studio-29.0.2-x86_64-1_SBo

ffmpeg version 5.1.2 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-5.1.2/html --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-gpl --enable-version3 --arch=x86_64 --enable-nonfree --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-libbluray --enable-libcaca --enable-libcdio --enable-frei0r --enable-openal --enable-libopus --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libmp3lame --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libpulse --enable-libsmbclient --enable-libxml2 --enable-librsvg --enable-vulkan --enable-libglslang --enable-libdrm