Closed nobuhibiki closed 6 years ago
Hello, it seems like the binary release is not working on Debian for some reason. Your best bet for now would be building the plugin yourself.
I tried building the plugin but I'm stuck on the cmake -D CEF_DIR=<path to your cef dir> .. You might need to also set OBS_INCLUDE and/or OBS_LIB build variables
part. Do you mind clarifying how this is done?
Did you try just running cmake -D CEF_DIR=...
? set CEF_DIR to directory where you have extracted and built the CEF.
Post the log if not successful.
Tried, when I typed make
after that this shows up:
~/Documents/2017/obs-linuxbrowser/build$ make
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sacredwknight/Documents/2017/obs-linuxbrowser/build
[ 7%] Building C object CMakeFiles/obs-linuxbrowser.dir/src/plugin/main.c.o
/home/sacredwknight/Documents/2017/obs-linuxbrowser/src/plugin/main.c:17:24: fatal error: obs-module.h: No such file or directory
#include <obs-module.h>
^
compilation terminated.
CMakeFiles/obs-linuxbrowser.dir/build.make:62: recipe for target 'CMakeFiles/obs-linuxbrowser.dir/src/plugin/main.c.o' failed
make[2]: *** [CMakeFiles/obs-linuxbrowser.dir/src/plugin/main.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/obs-linuxbrowser.dir/all' failed
make[1]: *** [CMakeFiles/obs-linuxbrowser.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
It seems that debian obs-studio package does not include development headers. I think what you should try is:
cmake -D CEF_DIR=... -D OBS_INCLUDE=...
, set OBS_INCLUDE to obs-studio/libobs directoryIf somebody else was successful in building the plugin on Debian their input will be appreciated.
https://packages.debian.org/search?keywords=libobs-dev
This should be the debian package containing the necessary development headers to compile obs-linuxbrowser.
EDIT: How I build my cef-minimal distribution:
– download and extract the archive (see the link in README.md)
– cd into the extracted folder
– run cmake . && make clean && make -j4 libcef_dll_wrapper
(don't forget the dot after cmake)
– copy the contents of the folder to a new folder /opt/cef (root required, optional)
After having completed the installation of cef-minimal, you can easily compile and install obs-linuxbrowser:
– call obs-linuxbrowser's cmake command like this: cmake -D CEF_DIR=/opt/cef ..
(don't forget the two dots at the end)
– run make -j4 && make install
If you understand the shell script language, you can look into the AUR packages of cef-minimal [1] and obs-linuxbrowser [2].
EDIT 2: Or you can let this [3] little piece of code do the job. Download the file, make it executable and execute it.
[1] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=cef-minimal [2] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=obs-linuxbrowser [3] https://gist.github.com/NexAdn/47d2ef526da833eeff9f697f206e6a8f or https://gist.githubusercontent.com/NexAdn/47d2ef526da833eeff9f697f206e6a8f/raw/62f6cc384eb94a0a304b8486015ea04c15795ca8/install.sh
Closed due to lack of response
For some reason when I have the obs-linuxbrowser in the .config folder OBS just wouldn't start. I've tried installing both version and none of them works.
I'm running Debian 9.3