Open theScrabi opened 4 years ago
I am able to build on Fedora 32 using this pending PR:
I am able to build on Fedora 32 using this pending PR:
43
Trying to build it with Fedora 32 as well. That PR doesn't work for me. I still get these errors:
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
CMake Error at external/FindLibObs.cmake:94 (message):
Could not find the libobs library /LibObsConfig.cmake
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
Can you try these cmake options?
sudo dnf install obs-studio-libs qt5-qtbase-devel
git clone https://github.com/DaveWK/obs-v4l2sink.git
cd obs-v4l2sink
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIBOBS_INCLUDE_DIR="/usr/lib64" -DLibObs_DIR="/usr/lib64/cmake/LibObs" ..
make -j4
sudo make install
cc: @DaveWK
Thanks for the suggestion. I get the same error.
Could not find the libobs library
/usr/lib64/cmake/LibObs/LibObsConfig.cmake
Call Stack (most recent call first):
CMakeLists.txt:5 (include)```
However there is a simple workaround. I got it working by simply copying the files from the .dep to the places the belong to in fedora.
FWIW here's how I managed to build on Fedora 32 for the rpmfusion obs-studio 25.0.8.
git clone --depth 1 --single-branch -b 25.0.8-patch https://github.com/obsproject/obs-studio.git obs-studio
git clone https://github.com/CatxFish/obs-v4l2sink
cd obs-v4l2sink
sed -i s$/lib/obs-plugins$/lib64/obs-plugins$ CMakeLists.txt
mkdir build
cd build
cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr -DLIBOBS_LIB="/usr/lib64/libobs.so" ..
make
sudo make install
2\. git clone https://github.com/CatxFish/obs-v4l2sink
This doesn't work for me. I still get the following error:
Could not find a package configuration file provided by "LibObs" with any
of the following names:
LibObsConfig.cmake
libobs-config.cmake
Add the installation prefix of "LibObs" to CMAKE_PREFIX_PATH or set
"LibObs_DIR" to a directory containing one of the above files. If "LibObs"
provides a separate development package or SDK, be sure it has been
installed.
@confunguido -- I made some updates to the branch I was working on -- try doing:
dnf install -y obs-studio-libs obs-studio-devel qt5-qtbase-devel cmake make automake gcc gcc-c++ --enablerepo=rpmfusion-free-updates
(assuming you have rpmfusion-free-updates installed) and it should work
I think it worked. Thanks @DaveWK!
OK, got it working and I'm confirming steps here. I did the following on Fedora 32:
dnf install -y obs-studio
dnf install -y obs-studio-libs obs-studio-devel qt5-qtbase-devel cmake make automake gcc gcc-c++
sudo ln -s /usr/lib/obs-plugins/v4l2sink.so /usr/lib64/obs-plugins/
sed -i s$/lib/obs-plugins$/lib64/obs-plugins$ CMakeLists.txt
before step 4obs-studio
, go to Tools > V4L2 Video Output change device to /dev/video2, click StartSpecs:
/:-------------:\ OS: Fedora 32 ThirtyTwo
:-------------------:: Kernel: x86_64 Linux 5.7.14-200.fc32.x86_64
:-----------/shhOHbmp---:\ Uptime: 18h 40m
/-----------omMMMNNNMMD ---: Packages: 2488
:-----------sMMMMNMNMP. ---: Shell: bash 5.0.17
:-----------:MMMdP------- ---\ Resolution: 5760x1080
,------------:MMMd-------- ---: DE: GNOME 3.36.4
:------------:MMMd------- .---: WM: Mutter
:---- oNMMMMMMMMMNho .----: WM Theme:
:-- .+shhhMMMmhhy++ .------/ GTK Theme: Adwaita-dark [GTK2/3]
:- -------:MMMd--------------: Icon Theme: Adwaita
:- --------/MMMd-------------; Font: Droid Sans Bold 11
:- ------/hMMMy------------: CPU: AMD Ryzen Threadripper 1920X 12-Core @ 24x 3.5GHz
:-- :dMNdhhdNMMNo------------; GPU: GeForce GTX 1060 3GB
:---:sdNMMMMNds:------------:
:------:://:-------------::
:---------------------://
9\. sudo make install
Thanks man, you have saved my life
I'm getting this issue, however I don't know which package would satisfy this xcb-config.cmake: