CatxFish / obs-v4l2sink

obs studio output plugin for Video4Linux2 device
GNU General Public License v2.0
930 stars 99 forks source link

building plugin is failing #15

Open daoudr opened 4 years ago

daoudr commented 4 years ago

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

daoudr commented 4 years ago

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 commented 4 years ago

Thank you for sharing this.

p0pp3t0n commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

wildgruber commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

shivangp76 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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/