nleseul / obs-ghostscript

Video source plugin for OBS which renders PDF and other documents using Ghostscript
The Unlicense
28 stars 9 forks source link

Not sure where to put libobs-ghostscript.so and /obs-ghostscript//locale/en-US.ini #1

Open mxochicale opened 4 years ago

mxochicale commented 4 years ago

Hi @nleseul

Thanks for the nice plugin. I have build and installed latest version of OBS following this on Ubuntu18.14x64. Then manage to build obs-ghostscript-1.3 running this


$ cmake .. -DOBSSourcePath=~/Downloads/obs/obs-studio/libobs/ -DOBSLibraryPath=~/Downloads/obs/obs-studio/build/UI -DCMAKE_INSTALL_PREFIX=~/obs-studio

$ make install
[100%] Built target obs-ghostscript
Install the project...
-- Install configuration: ""
-- Installing: $HOME/obs-studio/obs-plugins/64bit/libobs-ghostscript.so
-- Installing: $HOME/obs-studio/data/obs-plugins/obs-ghostscript/
-- Installing: $HOME/obs-studio/data/obs-plugins/obs-ghostscript//locale
-- Installing: $HOME/obs-studio/data/obs-plugins/obs-ghostscript//locale/en-US.ini

However, I am reached the point to use the above files but I am not sure where to put them. I can mention that related obs directories are:

$HOME/Downloads/obs/obs-studio/build
$HOME/.config/obs-studio/plugin_config
/usr/share/obs

Any ideas?

nleseul commented 4 years ago

As far as I can tell, that package sets up the plugin binaries in /usr/lib/obs-plugins, and the plugin data files in /usr/share/obs/obs-plugins. Seems like a strange arrangement to me, but whatever. So you basically need the .so to go in /usr/lib/obs-plugins, and the locale folder to go in a directory named obs-ghostscript within /usr/share/obs/obs-plugins.

On my test system, it worked out like this:

sudo cp ~/Development/obs-ghostscript/build64/libobs-ghostscript.so /usr/lib/obsplugins
sudo mkdir /usr/share/obs/obs-plugins/obs-ghostscript
sudo cp -r ~/Development/obs-ghostscript/data/locale /usr/share/obs/obs-plugins/obs-ghostscript/
mxochicale commented 4 years ago

Amazing @nleseul

Following the above three lines, the plugin is nicely working. Now, I am happily following your tutorial. Let me know if there is any test that I can do, otherwise you can close this issue.

BYW, Nice channel :smile: