CatxFish / motion-effect

obs-studio plugin for source item animation
https://obsproject.com/forum/resources/motion-filter.668/
GNU General Public License v2.0
211 stars 38 forks source link

Right way to install in a normal linux distro #31

Open zenny opened 3 years ago

zenny commented 3 years ago

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 (https://github.com/CatxFish/motion-effect/issues/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 commented 3 years ago

@CatxFish  please take a look at this :pray:

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 commented 3 years ago

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 commented 1 year ago

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 !!