obs-v4l2sink icon indicating copy to clipboard operation
obs-v4l2sink copied to clipboard

building plugin is failing

Open daoudr opened this issue 5 years ago • 16 comments

I am not being able to install obs virtualcam https://imgur.com/iTD3lPx.png

daoudr avatar Feb 09 '20 06:02 daoudr

problem solved by installing these two packages form synaptic https://imgur.com/xFp1xq7.png then follow the instructions of this site without modifying them

daoudr avatar Feb 13 '20 11:02 daoudr

Thank you for sharing this.

esa1975 avatar Mar 08 '20 17:03 esa1975

problem solved by installing these two packages form synaptic https://imgur.com/xFp1xq7.png then follow the instructions of this site without modifying them

Saved me from having to troubleshoot it. Much appreciated.

p0pp3t0n avatar Mar 25 '20 20:03 p0pp3t0n

actually helped me!. In case the screenshots get lost, the error

obs-v4l2sink/build$ cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
....
-- Could NOT find Libobs (missing: LIBOBS_LIB) 
CMake Error at external/FindLibObs.cmake:106 (message):
  Could not find the libobs library
Call Stack (most recent call first):
  CMakeLists.txt:5 (include)

-- Configuring incomplete, errors occurred

could be resolved by installing

$ sudo apt install libobs-dev

joshwapohlmann avatar Apr 03 '20 20:04 joshwapohlmann

I am running in to this myself, but I would like to prevent installing the libobs-dev package because I might run in to versioning problems - I'm running a portable obs-studio from my homedir, which is more recent than the available packages. Any pointers on how to achieve that? Probably need to give cmake another parameter to find the actual compiled libraries?

florianoverkamp avatar Apr 07 '20 14:04 florianoverkamp

Ah, found it. In order to make a build work like this, add an explicit reference to where your libobs.so resides:

cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX="${HOME}/obs-studio-portable" -DLIBOBS_LIB="${HOME}/obs-studio-portable/bin/64bit/libobs.so" ..

and then proceed as normal.

As a last step, the paths for make install are not quite right, I had to link the compiled v4l2sink.so in the 64bit directory (it was placed in bin, not in bin/64bit). After this the module is loading in obs.

florianoverkamp avatar Apr 07 '20 18:04 florianoverkamp

Ah, found it. In order to make a build work like this, add an explicit reference to where your libobs.so resides:

cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX="${HOME}/obs-studio-portable" -DLIBOBS_LIB="${HOME}/obs-studio-portable/bin/64bit/libobs.so" ..

and then proceed as normal.

As a last step, the paths for make install are not quite right, I had to link the compiled v4l2sink.so in the 64bit directory (it was placed in bin, not in bin/64bit). After this the module is loading in obs.

@Florian: thanks, that is wonderful, this is the definitive solution to a lot of error reports here; cost me hours! Your solution is much better of course than to do a systemwide install of another OBS version (which was offered here before as a "solution").

There is really an incoherence in documentation here, as first a git checkout of OBS is done (which is to be installed in $HOME), but then, on the other hand, another systemwide installation of OBS (with libs in /usr/lib) is required.

wildgruber avatar Apr 19 '20 10:04 wildgruber

Don't @ mention me, please. I'm a different Florian and I get emails and notifications for these @ mentions.

florian avatar Apr 19 '20 10:04 florian

Don't @ mention me, please. I'm a different Florian and I get emails and notifications for these @ mentions.

I see, sorry for the inconvenience!

wildgruber avatar Apr 19 '20 21:04 wildgruber

problem solved by installing these two packages form synaptic https://imgur.com/xFp1xq7.png then follow the instructions of this site without modifying them

actually helped me!. In case the screenshots get lost, the error

obs-v4l2sink/build$ cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
....
-- Could NOT find Libobs (missing: LIBOBS_LIB) 
CMake Error at external/FindLibObs.cmake:106 (message):
  Could not find the libobs library
Call Stack (most recent call first):
  CMakeLists.txt:5 (include)

-- Configuring incomplete, errors occurred

could be resolved by installing

$ sudo apt install libobs-dev

Thank you both for sharing!

djacu avatar Sep 18 '20 23:09 djacu

problem solved by installing these two packages form synaptic https://imgur.com/xFp1xq7.png then follow the instructions of this site without modifying them

How install this in Fedora? I have try but not found the equivalent package

jacob-dev37 avatar Sep 19 '20 01:09 jacob-dev37

problem solved by installing these two packages form synaptic https://imgur.com/xFp1xq7.png then follow the instructions of this site without modifying them

How install this in Fedora? I have try but not found the equivalent package

Also, how would I install this on Arch Linux? I could not find an equivalent package.

shivangp76 avatar Oct 18 '20 06:10 shivangp76

I'm also on arch linux and I want to install libobs-dev on Arch

ericktucto avatar Jan 10 '21 21:01 ericktucto

I'm also on arch linux and I want to install libobs-dev on Arch

With obs 26.1, you won't need this package, but if you still want to install it, there is an aur package: https://aur.archlinux.org/packages/obs-v4l2sink/

shivangp76 avatar Jan 10 '21 21:01 shivangp76

I'm also on arch linux and I want to install libobs-dev on Arch

With obs 26.1, you won't need this package, but if you still want to install it, there is an aur package: https://aur.archlinux.org/packages/obs-v4l2sink/

I found out that the problem is actually that I cannot install v4l2loopback, so this v4l2sink package installs on my laptop, not working because of v4l2loopback problem What do you mean that it is not necessary to install in obs-studio 26.1?

ericktucto avatar Jan 10 '21 23:01 ericktucto

What do you mean that it is not necessary to install in obs-studio 26.1?

Read the top pinned comment on the aur package: https://aur.archlinux.org/packages/obs-v4l2sink/

shivangp76 avatar Jan 11 '21 01:01 shivangp76