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

Right way to install in a normal linux distro #31

Open
zenny opened this issue Sep 10, 2020 · 3 comments
Open

Right way to install in a normal linux distro #31

zenny opened this issue Sep 10, 2020 · 3 comments

Comments

@zenny
Copy link

zenny commented Sep 10, 2020

Hi,

After whining for days to compile this useful plugin in VoidLinux (or any other GNU/Linux distro), I have finally compiled, built and installed it successfully. :D

In order to avoid confusions I encountered (#30). I am summarizing the process if it can help anyone in the future:

  1. Download the motion effect source. NB: The name of the repository in line 52 of the README.md is incorrect (NOT motion-filter.git, but motion-effect.git).
    git clone https://github.com/CatxFish/motion-effect.git

  2. Change directory to the downloaded source repo.
    cd motion-effect

  3. Pull the obs-studio source recursively (either from master or from the matching release).
    git clone --recursive https://github.com/obsproject/obs-studio.git

  4. Create a build directory and change to the build directory.
    mkdir build && cd build

  5. Compile the source with the following command:
    cmake -DLIBOBS_INCLUDE_DIR="../obs-studio/libobs/" -DCMAKE_INSTALL_PREFIX=/usr ..

  6. Build the plugin.
    make -j`nproc`

  7. Install the plugin.
    sudo make install

Lo and behold this plugin appears in the filter list once you restart obs.

Hope it helps someone.

Cheers and stay safe,
/z

@WesleyBatista
Copy link

WesleyBatista commented Oct 25, 2020

@CatxFish  please take a look at this 🙏

Using Ubuntu, and this helped me to have a smooth and successful installation.

Update:

The installation was successful, but I didn't get the filter to be listed :/

I gave up on it and installed move-transition, which works out of the box for what I want :)

@djpohly
Copy link

djpohly commented Dec 2, 2020

And while we're here, if you'd like to install the plugin locally, as a regular user, rather than system-wide with sudo, the path you want is

~/.config/obs-studio/plugins/motion-filter/bin/64bit/motion-filter.so

@paul-onof
Copy link

paul-onof commented Dec 6, 2022

Using OBS 27.2 on an ubuntu-based distro.

make -jnproc` didn't work for me following the instruction given.

Got to comment out lines 103 and 104 in ~/motion-effect/src/helper.c to get it working.

The first time I tried I got this error:

~/motion-effect/src/helper.c:103:19: error: invalid use of incomplete typedef ‘obs_source_t’ {aka ‘struct obs_source’}
  103 |         if (!scene->context.private)

Thanks for your help !!

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