-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
v1.0 RC1 Linux install instructions #71
Comments
The issue is that it depends on your distribution and how you installed OBS Studio, as far as I know. How did you install OBS? Using snap or something else? It looks like it finds obs-kinect-azuresdk.so and obs-kinect-freenect.so but can't load their dependencies, however there's nothing about obs-kinect-freenect2.so except it just doesn't find it, are they in separate folders? |
Hi @SirLynix
I am installed via apt and on Ubuntu 20.04 |
Yeah I meant there's no error with freenect2 backend where it says it doesn't find its dependencies. |
I ran a couple of tests and found some useful information. 1: Copied obs-kinect-.so to /usr/bin/ and ran obs from the shortcut. based on that I would assume obs-kinect is hard coded to load from the current working directory rather than plugins or something similar. |
This may be because obs-kinect loads them using a relative path, I pushed a commit to try to fix this, could you please test with this version? https://github.com/SirLynix/obs-kinect/actions/runs/2832257366 (you will be able to download the artifacts once the CI completes) |
Worse result than before.
I will checkout the patch commit later today and see if I can build at test it later today or on the weekend. If I can get a working patch I will push it up for review. |
Hi @SirLynix Using the commit you linked above I needed to put the backend libraries in /usr/lib/ not /usr/lib/obs-plugins
Also looked like it would work but my build was throwing out other issues due to issues compiling obs-studio so I was failing to launch the plugin at all. Either way. I am happy to just have the libraries at /usr/lib for now. if a better path such as /usr/lib/obs-plugins/ can be achieved I am happy to test it out. |
The big issue I have with this solution is that it won't work for everyone, it depends on your Linux distribution and how you installed OBS Studio. Do you know about other OBS Studio plugins which have to load binaries like this? I wonder how they handle this. |
I am not familiar with it so I did some research. Firstly os_dlopen wraps dlopen on linux. dlopen has a specified search order to look for libraries https://man7.org/linux/man-pages/man3/dlopen.3.html Secondly looking at the obs-studio repo. os_dlopen is used just with the path obs-studio example As such I am happy to approve the change in the above commit as it complies with the OBS standard implementation. |
Thanks a lot for investigating. So basically the plugins works fine on Linux if you move every backend .so in the /usr/lib folder? Could you try with this version: https://github.com/SirLynix/obs-kinect/actions/runs/2841180426 I tried to set the rpath to the current folder and move the backend .so in the plugin folder, could you tell me if it's working better this way? (I don't have a working desktop Linux to test myself for now) |
No such luck with the latest build. I tried with the backend at /usr/lib/obs-plugin and /usr/lib/obs. Both failed for me. It looks like there is an extra slash being injected into the path for the library. its logging /usr//lib/obs-plugins not /usr/lib/obs-plugins. See log below.
Looking back at my previous logs posted. This does not look to be a new issue but rather one that was already existing. |
The issue here seems to be because of libos-kinectcore, which is common code for all obs kinect .so Could you try again with this version? |
With the backend in /usr/lib/obs-plugins/ the backends were not loading.
With the backend in /usr/lib. I was able to load the kinect and use it the same as the original release in this issue.
|
I'm trying to install it with the official obs flatpak. If it works there, it should work on all distributions. The plugin works, but it can't load libfreenect2 like here. With native installation (not flatpak) I could point to obs-plugins dir as the work dir and it would sometimes work (though crashes most of the time). If anyone knows how to set working directory in flatpak that would be helpful. |
continued in #9 (comment) with instructions |
Update: I installed ubuntu bionic in a VM, followed the .yml file, and it fails the same way that it does on linux mint. Lots of steps and dependencies are missing from your instructions. |
As with a few people in issue #9 I can't seem to get anything working on Ubuntu 20.04
I have the latest build of libfreenect2 built and copied to /usr/lib/x86_64-linux-gnu/ and the obs-kinect plugin at /usr/lib/obs-plugins
Any assistance on this would be greatly appreciated.
Log output is as follows
The text was updated successfully, but these errors were encountered: