Coder Social home page Coder Social logo

Comments (11)

doricci avatar doricci commented on July 2, 2024 1

@spamnick After your command git clone ... you have to do cd obs-backgroundremoval.

But then I have an issue while running the command cmake .. && cmake --build . && cmake --install .

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find LibObs (missing: LIBOBS_INCLUDE_DIR)

I installed all the dependencies like it was said in the REAME.md of the project, anyone has an idea?

from obs-backgroundremoval.

fubar-coder avatar fubar-coder commented on July 2, 2024

You forgot a git clone https://github.com/royshil/obs-backgroundremoval.git

Example:

git clone https://github.com/royshil/obs-backgroundremoval.git
cd obs-backgroundremoval
mkdir build && cd build
cmake .. && cmake --build . && cmake --install .

from obs-backgroundremoval.

spamnick avatar spamnick commented on July 2, 2024

@fubar-coder So all commands in myDir:

apt install -y libobs-dev libopencv-dev language-pack-en wget git build-essential cmake
wget https://github.com/microsoft/onnxruntime/releases/download/v1.7.0/onnxruntime-linux-x64-1.7.0.tgz
tar xzvf onnxruntime-linux-x64-1.7.0.tgz --strip-components=1 -C /usr/local/ --wildcards "*/include/*" "*/lib*/"
git clone https://github.com/royshil/obs-backgroundremoval.git
mkdir build && cd build
cmake .. && cmake --build . && cmake --install .

Right?

from obs-backgroundremoval.

fubar-coder avatar fubar-coder commented on July 2, 2024

Yes, you need to make a change to the source code and add obs to the list of path prefixes (see PR #45).

There are other commands to execute after a successful installation, because obs-studio gets installed to /usr/..., while the plugin gets installed to /usr/local/...:

sudo ln -s /usr/local/lib/obs-plugins/obs-backgroundremoval.so /usr/lib/obs-plugins/
sudo ln -s /usr/local/share/obs/obs-plugins/obs-backgroundremoval /usr/share/obs/obs-plugins/

You may use mv instead of ln -s if you don't intend to update the plugin from the source code.

BTW: You don't need to/cannot install libobs-dev, but this is not an issue, because all necessary files are already installed by obs-studio (from the ppa, not the Ubuntu-provided one).

from obs-backgroundremoval.

spamnick avatar spamnick commented on July 2, 2024

So all commands in myDir:

apt install -y libobs-dev libopencv-dev language-pack-en wget git build-essential cmake
wget https://github.com/microsoft/onnxruntime/releases/download/v1.7.0/onnxruntime-linux-x64-1.7.0.tgz
tar xzvf onnxruntime-linux-x64-1.7.0.tgz --strip-components=1 -C /usr/local/ --wildcards "*/include/*" "*/lib*/"
git clone https://github.com/royshil/obs-backgroundremoval.git
cd obs-backgroundremoval
mkdir build && cd build
cmake .. && cmake --build . && cmake --install .

Right?

from obs-backgroundremoval.

spamnick avatar spamnick commented on July 2, 2024

@fubar-coder

from obs-backgroundremoval.

fubar-coder avatar fubar-coder commented on July 2, 2024
  1. If you use obs-studio from the ppa (ppa:obsproject/obs-studio), do not install libobs-dev
  2. Execute all commands up until (and including) mkdir build && cd build (but excluding the cmake commands)
  3. Then, before the cmake commands, apply the changes in the PR #45
  4. Execute the cmake .. && cmake --build . && cmake --install . commands
  5. Execute the ln -s ... commands I wrote in the comment above

from obs-backgroundremoval.

saif-ellafi avatar saif-ellafi commented on July 2, 2024

Yes, you need to make a change to the source code and add obs to the list of path prefixes (see PR #45).

There are other commands to execute after a successful installation, because obs-studio gets installed to /usr/..., while the plugin gets installed to /usr/local/...:

sudo ln -s /usr/local/lib/obs-plugins/obs-backgroundremoval.so /usr/lib/obs-plugins/
sudo ln -s /usr/local/share/obs/obs-plugins/obs-backgroundremoval /usr/share/obs/obs-plugins/

You may use mv instead of ln -s if you don't intend to update the plugin from the source code.

BTW: You don't need to/cannot install libobs-dev, but this is not an issue, because all necessary files are already installed by obs-studio (from the ppa, not the Ubuntu-provided one).

Hi @fubar-coder - is it possible to include this in the readme? the links were fundamental to get it working

from obs-backgroundremoval.

fubar-coder avatar fubar-coder commented on July 2, 2024

I don't know cmake good enough (or even at all), but it would be the better solution if you'd be able to specify the install path when calling cmake --install - including a hint in the README file. Using the links is IMHO the worse solution. It seems that it's common practice to install everything that's custom-built below /usr/local, so the default behavior is correct, but - in our case - undesirable.

from obs-backgroundremoval.

tallship avatar tallship commented on July 2, 2024

I don't understand why there can't be precompiled ready to go so we just unzip or tar zxf the archive, then dump the directories into ~/.config/obs-studio/plugins like the instructions for other plugins say to do. Can we have something like that @royshil ? Or is there a reason why it needs to go into /usr/..., with or without the symlinks?

The instructions for building from source were very unclear, at least I was able to find this issue, and hopefully, pr #45 has been incorporated into the Master branch, since that is seemingly where we're going to pull the source from to build it.

Right?

Thanks :)

from obs-backgroundremoval.

royshil avatar royshil commented on July 2, 2024

ubuntu versions now work

from obs-backgroundremoval.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.