-
Notifications
You must be signed in to change notification settings - Fork 65
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
SceneSwitcher on ARM (RPi4) #50
Comments
You would have to compile the plugin for arm. If you built obs itself for arm already it should be as simple as adding the the plugin to the OBS tree, adding its directory to cmake and starting the build again. Does this help you in any way? |
I am unsure of how i could compile it for ARM, but I understand what you mean, indeed. Thanks for your answer. |
Where did you get an arm version of obs-studio from? |
I doubt it too. I mainly followed instructions from this thread. Trying to compile it in tree results in several errors. |
Can you share a log? |
Compiling in tree does not work, as intended, Compiling out of tree outputs this error file while trying to run "sudo make -j4". I might have done something wrong, but fyi, I can successfully run the cmake command. |
Some header files cannot be found in the first log. What is the issue you are facing with building in tree, as you mentioned it is not working as intended? |
Please correct me if i'm wrong, but by compiling in tree, following the instructions (downloading the code in the right folder, modifying CMakeLists.txt), I presuppose that the plugin should be working (I might be completely wrong). Though, when i start OBS Studio, it isn't recognized at all.
I think i set all the variables correctly, as the cmake command outputs no error. This is confusing. |
Ah, so it built without issues? |
I did the entire compilation again, and I hit the same errors when executing "make -j4", and thus there are no so file anywhere in the build folder. Here is a tree of this folder:
Also, i can't tell if the frontend tools are working or not. What i can say however is that there is no output from them in the terminal when i run OBS. |
Sorry, I am a bit confused. I see that you placed the SceneSwitcher sources in tree under /home/pi/obs-studio/UI/frontend-plugins/SceneSwitcher, but at the same time you created a build folder under /home/pi/obs-studio/UI/frontend-plugins/SceneSwitcher/build. Can you try modifying /home/pi/obs-studio/UI/frontend-plugins/CMakeLists.txt and add the following line: Then just switch to /home/pi/obs-studio/build and run "make -j4" there? (Unless you tried that already of course :) ) |
That's already what I did, and I already sent the logs of this command above.
I am kinda clueless on which one I should do. Compiling in tree doesn't seem to do anything, and compiling out of tree results in errors when doing "make -j4". I should probably download "obs-frontend-api.h" somewhere and see if it fixes anything? |
Unless you are building a very old version of OBS this file should be part of the OBS sources. |
Okay, my bad. I was helped by a friend with more knowledge in software dev. than me. To sum up, I didn't understood that compiling from tree meant that I had to rebuild OBS entierly. Thus, following the thread i sent earlier, that's what I did, and it succesfully compiled. I didn't test it yet, that's why i'm not closing the thread on this comment. I'll report the issues, if I find any. |
Hi , tried to compile without success , sorry . DId you maybe had success and be so kind to share it please ? |
Did you run into compilation issues or issues at runtime? Unfortunately I do not have a setup on which to compile it on and I am not sure if corss-compiling would work. |
Hi thanks , here the logs CMake Error: The following variables are used in this project, but they are set to NOTFOUND. -- Configuring incomplete, errors occurred! |
Double checked and dirs |
Judging by the log you sent above it looks like you seem to accidentally have set some cmake variables incorrectly. Instead of running a single cmake command with all its parameters you seem to have ran some of the arguments as separate commands. If you built OBS yourself I would recommend that you also add the Scene Switcher as part of that build. (I have described this in a previous comment) |
I see , well as i already told im not in compiling stuff so , if you will be son kind to explain me . I compliled OBS studio using the script mentioned here : https://obsproject.com/forum/threads/obs-raspberry-pi-build-instructions.115739/ |
Assuming that your obs-studio source code directory is located under /home/pi/obs-studio run the following commands:
Then edit the file /home/pi/obs-studio/UI/frontend-plugins/CMakeLists.txt and add the following line: Finally run:
Let me know if you run into issues or have any questions. |
Hi , THANKS A LOT AGAIN , complilng process stopped with errors |
Wait , recompiled Obs studio , re lauched with your instructions and scene switcher compiling finished successfully. |
If compiling worked you should find the plugin's so-file using this command:
Does installing it manually help? |
Hi , searched everywhere but advanced-scene-switcher.so is not there 07:46:18 PM.871: Physical Cores: 4, Logical Cores: 4 |
checked again , here's compilation log |
Then I would assume that the compilation failed. |
Thanks for patience , you are very kind , you mean you need full logs ? |
No problem. But in general the previous log you shared with the linking issues ... But let us maybe work this out in a conversation on the OBS website and report back here when we got it to work, just so we do not spam this thread with sharing build logs over and over. |
ok ! thanks |
It looks like cleaning the build environment and installing all dependencies (libxss-dev) seemed to resolve the issues and plugin was built successfully for arm and can be loaded by OBS. |
I would like to know if there is any way to build SceneSwitcher to make it work with OBS running on a Raspberry Pi 4 (4GB RAM), as the regular so file is not even detected.
Terminal output:
From what i can understand it's actually tring to load x64 files. Being able to run OBS on a Raspberry Pi 4, even in a very unstable state, is quite new, so i'm unsure how to fix most problems i encounter.
Thanks for your help.
The text was updated successfully, but these errors were encountered: