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

Missing ObsPluginHelpers.cmake #1

Open
ColinHarrington opened this issue Sep 17, 2018 · 9 comments
Open

Missing ObsPluginHelpers.cmake #1

ColinHarrington opened this issue Sep 17, 2018 · 9 comments

Comments

@ColinHarrington
Copy link

I'm having an issue building the plugin, it seems like the repo is missing the [ObsPluginHelpers.cmake]

include(${LIBOBS_INCLUDE_DIR}/../cmake/external/ObsPluginHelpers.cmake)

Output:

$  cmake -DLIBOBS_INCLUDE_DIR="$LIBOBS_PATH" -DCMAKE_INSTALL_PREFIX=/usr ..
CMake Error at external/FindLibObs.cmake:98 (include):
  include could not find load file:

    /usr/share/obs/libobs/../cmake/external/ObsPluginHelpers.cmake
Call Stack (most recent call first):
  CMakeLists.txt:5 (include)


-- Configuring incomplete, errors occurred!
See also "/obs-vl4l2sink/build/CMakeFiles/CMakeOutput.log".

I'm guessing it's missing from when you copied from obs-virtual-cam

@ColinHarrington ColinHarrington changed the title Missing ObsPluginHelpers.cmake Missing ObsPluginHelpers.cmake Sep 17, 2018
@ColinHarrington
Copy link
Author

Looks like this relies on having the OBS project's ObsPluginHelpers.cmake available and not compatible with the binary installations.

@CatxFish
Copy link
Owner

I'll fix it later.

@Lucretia
Copy link

Can you fix this please?

@Vulwsztyn
Copy link

+1

@dylanjw
Copy link

dylanjw commented Apr 1, 2020

The build process requires the obs-studio source code. You need to have a clone of the obs-studio project in the same directory as the clone of obs-v4l2sink before building.

git clone --recursive https://github.com/obsproject/obs-studio.git
git clone https://github.com/CatxFish/obs-v4l2sink.git
cd obs-v4l2sink
mkdir build && cd build
cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
make j4
sudo make install

@Lucretia
Copy link

Lucretia commented Apr 2, 2020

The build process requires the obs-studio source code. You need to have a clone of the obs-studio project in the same directory as the clone of obs-v4l2sink before building.

git clone --recursive https://github.com/obsproject/obs-studio.git
git clone https://github.com/CatxFish/obs-v4l2sink.git
cd obs-v4l2sink
mkdir build && cd build
cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
make j4
sudo make install

And it's annoying because it cannot be packaged easily, especially on gentoo. Having this be self contained would be better.

@rossmeier
Copy link

I use this patch (master...veecue:system-libs) for packaging this and add a bulild dependency to obs-studio-devel (on Fedora), obs-studio (on Arch, already contains the cmake and headers) or however it is called on your distro

@ajlogo
Copy link

ajlogo commented Jul 11, 2020

The correct make line includes '-':
make -j4
These and with the above clone of obsproject allows for the instructions at:
https://github.com/CatxFish/obs-v4l2sink
to be successful. This includes the instructions about v4l2loopback at:
https://github.com/umlaeute/v4l2loopback#run

@rossmeier
Copy link

@ajlogo That is just not how idiomatic linux packaging should work. Dependencies (also build dependencies) should be handled by the system package manager instead of git clones.

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

7 participants