Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

building plugin is failing #15

Open
daoudr opened this issue Feb 9, 2020 · 16 comments
Open

building plugin is failing #15

daoudr opened this issue Feb 9, 2020 · 16 comments

Comments

@daoudr
Copy link

daoudr commented Feb 9, 2020

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

@daoudr
Copy link
Author

daoudr commented Feb 13, 2020

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

@esa1975
Copy link

esa1975 commented Mar 8, 2020

Thank you for sharing this.

@p0pp3t0n
Copy link

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.

@joshwapohlmann
Copy link

joshwapohlmann commented Apr 3, 2020

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

@florianoverkamp
Copy link

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
Copy link

florianoverkamp commented Apr 7, 2020

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.

@wildgruber
Copy link

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.

@florian
Copy link

florian commented Apr 19, 2020

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

@wildgruber
Copy link

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!

@djacu
Copy link

djacu commented Sep 18, 2020

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!

@jacob-dev37
Copy link

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

@shivangp76
Copy link

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.

@ericktucto
Copy link

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

@shivangp76
Copy link

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/

@ericktucto
Copy link

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?

@shivangp76
Copy link

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/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests