-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Precising Linux build instructions #14
Comments
@ysalmon THX alot for the hint regarding correct branch. This solved it for me. I also use PPA on Ubuntu 20.04 and cloned the repository for the headers. I did not install to
In my case i did not need to |
@ysalmon @Wurschdbude can y'all plz make a PR with fixes to the README? |
I was not able to use the snap configuration
however, the file is there
|
@marcelotrevisani , curious if you figured out the issue you were having with OBS not finding |
I am attempting to build this on Debian stable (11 Bullseye released in 2021), following the current Linux directions with some minor changes.
-- Found Git: /usr/bin/git (found version "2.30.2") -- Configuring incomplete, errors occurred! dpkg -l *onnx* dpkg -l '*obs*' Didn't get there yet, but in case it does...find /usr -iname '*libonnx*' find /usr -iname '*libobs*' |
Rebased instructions based on the archlinux package build src-obs-backgroundremoval$ cmake -B build -DobsIncludePath=/usr/include/obs -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_RPATH="/usr/lib/obs-backgroundremoval" -DOnnxruntime_INCLUDE_DIRS=/usr/include/onnx/ -DOnnxruntime_INCLUDE_DIR=/usr/include/onnx/ -DOnnxruntime_LIBRARIES=/usr/lib/x86_64-linux-gnu/libonnx.so cd build ; make ... onnxruntime_cxx_api.h isn't included in any package shipped by Debian https://github.com/microsoft/onnxruntime/releases $ cmake -B build -DobsIncludePath=/usr/include/obs -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_RPATH="/usr/lib/obs-backgroundremoval" cd build obs Now to figure out the v4l2loopback camera... |
Hi,
I was not able to find an official statement about the correct plugin install directory, but the information written in this forum helped me: https://forums.linuxmint.com/viewtopic.php?t=278509 If people agree that this is the correct installation procedure/location, I am happy to create a PR. |
That worked for me, I just needed to change the location of the plugins to |
* Add obs-plugintemplate files (#1) * Add obs-plugintemplate files * Rename * Update CMakeLists.txt * Update main.yml * files * Update CMakeLists.txt * Fix * Update .Brewfile * Update main.yml * Update main.yml * check-cmake.sh * Update main.yml * Update main.yml * Build my opencv (#2) * BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * check-cmake * Update main.yml * Update buildspec.json * Update CMakeLists.txt * Build my onnxruntime (#3) * fix * Update BuildMyOnnxruntime.cmake * Enable arm64 * 0.5.2 * Update BuildMyOnnxruntime.cmake * Update .Brewfile * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * fix * Fix * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * a * Create .gitmodules * Create onnxruntime * Update onnxruntime * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * fix * Update BuildMyOnnxruntime.cmake * ARCHITECTURE * Apply * Update BuildMyOnnxruntime.cmake * fix * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * aaa * Enable Windows build (#4) * Enable Windows build * Update main.yml * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Fix linkage * Remove /WX * Update ObsPluginHelpers.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update CMakeLists.txt * Fix * Update CMakeLists.txt * a * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Disable DML * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update background-filter.cpp * Update BuildMyOnnxruntime.cmake * Disable DML * Fix segfault (#6) * Update Model.h * 0.5.6 * Ccache macos (#8) * Ccache * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Revert "Update BuildMyOnnxruntime.cmake" This reverts commit 44d9caa. * Revert "Update BuildMyOnnxruntime.cmake" This reverts commit 9294106. * Direct ml (#7) * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * dml * 0.5.7 * Update CMakeLists.txt * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * a * Update main.yml * Update BuildMyOnnxruntime.cmake * Update main.yml * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Fix * Update BuildMyOnnxruntime.cmake * Update main.yml * Linux build (#9) * linux * 0.5.8 * Update BuildMyOnnxruntime.cmake * Update setup_ccache (#10) * bump version (#11) * Use ninja on windows (#12) * Update main.yml * Update main.yml * Use Ninja * Update BuildMyOnnxruntime.cmake * Update main.yml * ccache * Update BuildMyOpenCV.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update BuildMyOnnxruntime.cmake * Update main.yml * Update main.yml * Update CMakeLists.txt * Update BuildMyOnnxruntime.cmake * Long path * Update main.yml * Update BuildMyOnnxruntime.cmake * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Update BuildMyOnnxruntime.cmake * Windows opencv ccache (#13) * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update BuildMyOpenCV.cmake * Update main.yml * Update BuildMyOpenCV.cmake * bump 0.5.10 (#14) * Cleanup (#15) * Cleanup * bump version * Fix ep (#16) * Update BuildMyOnnxruntime.cmake * Update BuildMyOpenCV.cmake * Update main.yml (#18) * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * 0.5.12 * Fix * Update package-macos.zsh * Update package-linux.zsh * Update CMakeLists.txt * ci * Fix * Update background-filter.cpp * Fix * clang-format * cmake-format * Update BuildMyOpenCV.cmake * Update BuildMyOnnxruntime.cmake * Fix errors * Use -isystem * Use list in set_target_properties * INTERFACE_INCLUDE_DIRECTORIES must be on IMPORTED TARGET * Update ObsPluginHelpers.cmake
new build scripts in place for linux |
I suggest expanding the build instruction with the following, which will be of interest to people who got OBS Studio from the official PPA.
The PPA does not contain a libobs or libobs-dev and one should not install the version that comes with Debian/Ubuntu as it will not be the same version.
One should get the sources for the installed version, as in the case of a MacOS build : currently
git clone --single-branch -b 26.1.1 git@github.com:obsproject/obs-studio.git
, then tell cmake where to find it.Furthermore, one should instruct cmake to install to
/usr
, not/usr/local
as it would by default, because the PPA version of OBS will look there.So the cmake configuration line is
cmake .. -DobsIncludePath=~/Downloads/obs-studio/libobs -DCMAKE_INSTALL_PREFIX:PATH=/usr
Also, I found that a
sudo ldconfig
was in order after unpacking onnxruntime but that may be a peculiarity of my system.The text was updated successfully, but these errors were encountered: