Page 1 of 1

[Canceled] Can't build obs-studio.

Posted: Thu Jan 17, 2019 18:25
by Alexander88207
Hello,

I want to build obs-studio from git to get the feature that i can use my amd gpu for recording but this error comes up

Source: https://github.com/obsproject/obs-studio

~/obs-studio/build $ make -j4
[ 1%] Built target media-playback
[ 1%] Built target ffmpeg-mux
[ 2%] Built target glad
[ 27%] Built target libobs
[ 28%] Built target file-updater
[ 31%] Built target linux-pulseaudio
[ 33%] Built target libobs-opengl
[ 35%] Built target linux-capture
make[2]: *** No rule to make target '/usr/lib/libudev.so', needed by 'plugins/linux-v4l2/linux-v4l2.so'. Stop.
make[1]: *** [CMakeFiles/Makefile2:631: plugins/linux-v4l2/CMakeFiles/linux-v4l2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 37%] Built target linux-jack
[ 38%] Built target linux-alsa
[ 43%] Built target linux-decklink
make: *** [Makefile:152: all] Error 2

Re: Can't build obs-studio.

Posted: Fri Jan 18, 2019 19:59
by Fitzcarraldo
If you're trying to build obs-studio from the Git Master Branch, there is a Portage master-branch ebuild media-video/obs-studio-9999 that you could try to install via Portage if you are au fait with using Portage in Sabayon Linux. Haven't tried to install obs-studio myself, so I don't know how successful you would be. It'll be something along the following lines if your installation is not already configured to use Portage:

1. Install Gentoo's Portage overlay manager.

Code: Select all

# equo install git
# equo install layman
2. Install the GCC compiler.

Code: Select all

# equo install gcc
3. Synchronise the Gentoo Portage package ebuild tree.

Code: Select all

# emerge --sync
4. Synchronise the Sabayon distribution's Gentoo Portage overlay package ebuild tree.

Code: Select all

# layman -S
5. Add the Sabayon distribution's Gentoo Portage overlay.

Code: Select all

# layman -a sabayon-distro
6. Synchronise the Sabayon distribution's Gentoo Portage overlay package ebuild tree.

Code: Select all

# layman -S
7. Install media-video/obs-studio via Portage as there is no Entropy package.

Code: Select all

# emerge =media-video/obs-studio-9999

Re: Can't build obs-studio.

Posted: Sat Jan 19, 2019 19:21
by Alexander88207
I already have tried it with portage this also fails at Built target linux-decklink.so

Re: Can't build obs-studio.

Posted: Wed Jan 23, 2019 20:29
by Fitzcarraldo
By the way, it is also necessary to do the following in order to merge obs-studio from its Master Branch:

Code: Select all

echo "=media-video/obs-studio-9999 **" > /etc/portage/package.keywords/obs-studio
As you can see in the snippet of output copied from a Konsole window on my installation, I found it is possible to install obs-studio-9999 (i.e. Master Branch):

Code: Select all

[...]
>>> Installing (1 of 1) media-video/obs-studio-9999::gentoo
 * Updating icons cache ...                                                                                                                             [ ok ]
/sbin/ldconfig: File /usr/lib64/libpoppler.so.73 is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libpoppler.so.73.0.0 is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libpoppler.so is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libvisio-0.1.so.1 is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libvisio-0.1.so.1.0.6 is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libvisio-0.1.so is empty, not checked.

>>> Recording media-video/obs-studio::gentoo in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 23 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

sabayon /home/fitzcarraldo # eix -I obs-studio
[I] media-video/obs-studio
     Available versions:  (~)22.0.3 (**)9999 {+alsa fdk imagemagick jack luajit nvenc pulseaudio python speex truetype v4l PYTHON_SINGLE_TARGET="python3_4 python3_5 python3_6 python3_7" PYTHON_TARGETS="python3_4 python3_5 python3_6 python3_7"}
     Installed versions:  9999(17:06:24 23/01/19)(alsa fdk pulseaudio python speex truetype -imagemagick -jack -luajit -nvenc -v4l PYTHON_SINGLE_TARGET="python3_5 -python3_4 -python3_6 -python3_7" PYTHON_TARGETS="python3_5 -python3_4 -python3_6 -python3_7")
     Homepage:            https://obsproject.com
     Description:         Software for Recording and Streaming Live Video Content
However, there are some caveats. The only USE flags that resulted in a successful installation for me were:

Code: Select all

USE="alsa fdk -decklink -imagemagick -jack libcxx -luajit -nvenc pulseaudio python qt5 speex ssl truetype udev -v4l vlc" emerge =media-video/obs-studio-9999::gentoo
You can check in the Gentoo Wiki what the meaning of those individual USE flags are. To give one example, "-imagemagick" means obs-studio uses FFmpeg for image loading, instead of Imagemagick.

I also installed the following packages first, although I'm not sure if all of them are required in order to install obs-studio (As I had to use the USE flag -v4l in order to get obs-studio-9999 to merge, I doubt it):

Code: Select all

equo install vlc v4l-utils media-plugins/gst-plugins-v4l2-0.10.31-r1 media-plugins/gst-plugins-v4l2-1.14.4
Before my latest successful attempt to merge obs-studio-9999, I tried unsucessfully to merge it using the ebuilds in the Portage earshark and flussence Layman overlays. Both the overlay ebuilds installed various other packages prior to their attempt to build obs-studio itself, so I don't know whether or not any of those installed packages are required by obs-studio:

Code: Select all

sabayon /home/fitzcarraldo # genlop -l
 * packages merged:

     Tue Jan 22 17:02:58 2019 >>> dev-lang/swig-2.0.12
     Tue Jan 22 17:03:30 2019 >>> app-crypt/rhash-1.3.7
     Tue Jan 22 17:04:45 2019 >>> dev-libs/libuv-1.25.0
     Tue Jan 22 21:57:07 2019 >>> dev-util/cmake-3.13.3
     Wed Jan 23 00:23:23 2019 >>> dev-lang/luajit-2.0.5-r1
     Wed Jan 23 00:29:20 2019 >>> media-libs/libwmf-0.2.8.4-r7
     Wed Jan 23 00:39:09 2019 >>> media-gfx/imagemagick-7.0.8.23
     Wed Jan 23 09:59:40 2019 >>> dev-util/re2c-1.1.1
     Wed Jan 23 10:01:17 2019 >>> dev-util/ninja-1.8.2-r2
     Wed Jan 23 10:02:17 2019 >>> net-libs/mbedtls-2.16.0
     Wed Jan 23 15:26:10 2019 >>> sys-libs/libcxxabi-7.0.1
     Wed Jan 23 15:29:10 2019 >>> sys-libs/libcxx-7.0.1
     Wed Jan 23 17:07:42 2019 >>> media-video/obs-studio-9999
obs-studio is added to the 'Applications' > 'Multimedia' menu of the KDE Plasma 5 Application Launcher, and I can launch it sucessfully. However, I have no idea how to use it, and currenty have no interest in using it, so I have not tried to do anything with it.

EDIT: If you want Entropy to know what you did via Portage:

Code: Select all

equo rescue spmsync

Re: Can't build obs-studio.

Posted: Mon Jan 28, 2019 18:08
by Fitzcarraldo
Moved to 'Software in General' shed, as it seems a more appropriate forum than 'Off Topic'.

Re: Can't build obs-studio.

Posted: Tue Jan 29, 2019 21:08
by Alexander88207
hmm still fails, well no matter then i wait until a new version is available. thanks anyway