Comments (8)
+1 to the above.
For ease of discovery, this is the libobs error:
By not providing "FindLibObs.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LibObs", but
CMake did not find one.
Could not find a package configuration file provided by "LibObs" with any
of the following names:
LibObsConfig.cmake
libobs-config.cmake
Add the installation prefix of "LibObs" to CMAKE_PREFIX_PATH or set
"LibObs_DIR" to a directory containing one of the above files. If "LibObs"
provides a separate development package or SDK, be sure it has been
installed.
I tried downloading and installing the source for obs-studio, but it doesn't like the libobs
that's in there. :/ I'm a programmer but not a C programmer, and this is a stopping point for me, too. Too bad. Really wanted to try this out.
from obs-backgroundremoval.
yea finding libobs was a huge pain.
If you install OBS app you already have the binaries for libobs (e.g. /Applications/OBS.app/Contents/Frameworks/libobs.0.dylib
)
but you don't have the headers. so you need to clone the main obs repo e.g. git clone [email protected]:obsproject/obs-studio.git
then you'd need to point FindLibObs.cmake
to find the lib and headers:
find_path(LIBOBS_INCLUDE_DIR
NAMES obs.h
HINTS
ENV obsPath${_lib_suffix}
ENV obsPath
${obsPath}
PATHS
/Users/roy_shilkrot/Downloads/obs-studio/libobs/
/usr/include /usr/local/include /opt/local/include /sw/include
PATH_SUFFIXES
libobs
)
and
find_library(${base_name_u}_LIB
NAMES ${_${base_name_u}_LIBRARIES} ${lib_name} lib${lib_name} ${lib_name}.0
HINTS
ENV obsPath${_lib_suffix}
ENV obsPath
${obsPath}
${_${base_name_u}_LIBRARY_DIRS}
PATHS
/Applications/OBS.app/Contents/Frameworks
/usr/lib /usr/local/lib /opt/local/lib /sw/lib
# ...
I'm working to streamline this...
from obs-backgroundremoval.
I've created a release so you could download the pre-built binaries: https://github.com/royshil/obs-backgroundremoval/releases/tag/0.1-alpha
Follow the instructions on the release page.
Also added the above instructions to the README.md
.
from obs-backgroundremoval.
Thank you for the reply, Roy.
I tired the pre-built binaries. Copied them into the plugin folders. Doesn't seem to work. I get:
error: os_dlopen(/Applications/OBS.app/Contents/PlugIns/obs-backgroundremoval.so->/Applications/OBS.app/Contents/PlugIns/obs-backgroundremoval.so): dlopen(/Applications/OBS.app/Contents/PlugIns/obs-backgroundremoval.so, 257): Library not loaded: /usr/local/opt/onnxruntime/lib/libonnxruntime.1.7.2.dylib
Referenced from: /Applications/OBS.app/Contents/PlugIns/obs-backgroundremoval.so
Reason: image not found
warning: Module '/Applications/OBS.app/Contents/PlugIns/obs-backgroundremoval.so' not loaded
My brew installs a different version:
% ls /usr/local/opt/onnxruntime/lib
libonnxruntime.1.5.3.dylib libonnxruntime.dylib
So I'm guessing the pre-built version doesn't work universally.
from obs-backgroundremoval.
OK. one solution is to bundle libonnxruntimeNNN.dylib with the plugin, and copy it to the same directory for it find it
another solution is to get the plugin to link against the symlinked version so it just finds any libonnxruntime.dylib and tries to use it (instead of forcing the exact one).
i'll take a look into option 2. but for now i'll just add the dylib to the release files
from obs-backgroundremoval.
I'm unable to build too.
I did build a local copy of OBS Studio. I set the header and libs to point to the git repo folders. 'cmake ..' works
But then 'cmake --build ..' fails with "Could not load cache".
I removed the CMakeCache.txt file, reran 'cmake ..' and I get the same error.
from obs-backgroundremoval.
Looks like simply changing the build command to use current folder instead worked.
- 'cmake --build .'
- And then add a step to create the obs-backgroundremoval folder
Looks like it is working!
from obs-backgroundremoval.
I'm going to close this issue since i re-did the build and install parts.
open another issue if you're running into problems.
thanks for the help!
from obs-backgroundremoval.
Related Issues (20)
- Can we have another place to communicate with users casually? HOT 5
- record with alpha channel? HOT 4
- Plugin installs, loads, but does not appear in filter list HOT 3
- [NixOS] Unable to get model filename models/mediapipe.onnx HOT 3
- Keeps crashing OBS HOT 5
- It doesn't show up in any Filter. HOT 13
- Cache TensorRT modules HOT 5
- I could not understand how to use the new version of this plugin. HOT 7
- Upgrade to ONNXRuntime v1.17.1 HOT 2
- Even if you check Disable update check, it will be displayed every time you start OBS. HOT 2
- Background removal doesn't work nicely with the Source Clone plugin from Exeldro. HOT 7
- Can this plugin remove the background of a game card instead of a human portrait? HOT 18
- The latest update for OBS Back ground removal will not load because of Microsoft Defender SmartScreen HOT 6
- Latest update seems to break silhouette coherence HOT 2
- Huge latency issue in Linux HOT 6
- Support more than one person HOT 3
- DirectML not working with AMD RX 7800 XT
- Obs does not start after installing the background removal tool HOT 8
- Tremendous latency apon diabling source HOT 13
- Version 1.1.13 doesn't work HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obs-backgroundremoval.