Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to correctly install plugin (Linux)? #23

Closed
ipatix opened this issue Feb 22, 2020 · 8 comments
Closed

How to correctly install plugin (Linux)? #23

ipatix opened this issue Feb 22, 2020 · 8 comments

Comments

@ipatix
Copy link

ipatix commented Feb 22, 2020

Hi, I sucessfully compiled the two plugins and now want to install them on my Linux machine.
The instructions tell to run make install which I did:

[ 50%] Built target motion-filter
[100%] Built target motion-transition
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/obs-plugins/motion-filter.so
-- Installing: /usr/local/share/obs/obs-plugins/motion-filter/
-- Installing: /usr/local/share/obs/obs-plugins/motion-filter//zh-TW.ini
-- Installing: /usr/local/share/obs/obs-plugins/motion-filter//en-US.ini
-- Installing: /usr/local/lib/obs-plugins/motion-transition.so
-- Installing: /usr/local/share/obs/obs-plugins/motion-transition/
-- Installing: /usr/local/share/obs/obs-plugins/motion-transition//zh-TW.ini
-- Installing: /usr/local/share/obs/obs-plugins/motion-transition//en-US.ini

However, once obs is started up, it does not seem like those plugins get loaded correctly.
They do not seem to appear in the log file either.

How do I correctly get these plugins to load / how do I install them correctly?

@norihiro
Copy link
Contributor

Hi ipatix,

I'm using motion-effect on Linux and it works. The output of 'make install' looks similar as mine.
Where is the installed path of your OBS-Studio?
Do you mind to share your log file from OBS-Studio?

@mercelsantos
Copy link

Hi everyone,

What are the correct steps to install the motion motion-filter on Linux ubuntu?

I've tried the following one but no success! :(

git clone https://github.com/CatxFish/motion-filter.git
cd motion-filter
mkdir build && cd build
cmake -DLIBOBS_INCLUDE_DIR="" -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
sudo make install

@mercelsantos
Copy link

Finally, I compiled it. The question is, where should I save the files? Saved them on /usr but obs-studio doesn't load it. Any idea?

@ipatix
Copy link
Author

ipatix commented Mar 26, 2020

Hi ipatix,

I'm using motion-effect on Linux and it works. The output of 'make install' looks similar as mine.
Where is the installed path of your OBS-Studio?
Do you mind to share your log file from OBS-Studio?

My OBS is installed to /usr/bin/obs (the release from the Debian repositories).
I don't have access to the machine at the moment, but I'll try to get the log files back as soon as possible.

@mercelsantos
Copy link

mercelsantos commented Mar 26, 2020

It helped a lot!!!! Thanks! I was installing the motion libs in the wrong place.

In my case obs is placed on /usr/local/bin/ . Then, I had to install motion-effect/ on /usr/local/ folder.

see cmake flags specifications bellow.

sudo cmake -DLIBOBS_LIB="/usr/share/obs/" -DLIBOBS_INCLUDE_DIR="/usr/share/obs/" -DLibObs_DIR="/snap/obs-studio/1021/usr/cmake/LibObs/" -DCMAKE_INSTALL_PREFIX=//usr/local/

@norihiro
Copy link
Contributor

Hi ipatix,

Maybe you should add cmake option -DCMAKE_INSTALL_PREFIX=/usr as mercelsantos first commented.

@ipatix
Copy link
Author

ipatix commented Mar 29, 2020

@norihiro That indeed solved the problem. I would have expected that OBS tries to load plugins from both directories, but apparently that is not the case.

I don't quite like the solution of non-packaged software directly in /usr, but I guess this is rather a problem with OBS and not the plugin itself.

Thanks again!

@LynetteCullens
Copy link

Oh...So I am supposed to actually build something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants