-
Notifications
You must be signed in to change notification settings - Fork 512
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
Plugin fails to load on OBS 30.2 Flatpak #436
Comments
It seams that the main problem is that the flatpak obs studio 30.2.x versions does not allow to load plugins installed manually into the .var/app/com.obsproject.Studio/config/obs-studio/plugins folder. Reference: obsproject/obs-studio#10981 (comment) My failure is similar to the @Dekomoro log wit my Ubuntu 24.04. I've tried to compile the last version in Ubuntu 24.04 without success.
I found a temporal workaround, downgrading to the 30.1.2 flatpak version and the plugins loads fine. More info (in spanish, sorry): https://cursosdedesarrollo.com/2024/07/solucion-a-los-problemas-con-la-version-30-2-x-de-obs-studio-via-flatpak-y-el-plugin-obs-multi-rtmp/ |
May the right way to install plugin for flatpak version is to make another flatpak which could be mounted into the same container. But I know nothing in flatpak.
…________________________________
From: David Vaquero ***@***.***>
Sent: Friday, July 26, 2024 5:41:12 PM
To: sorayuki/obs-multi-rtmp ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [sorayuki/obs-multi-rtmp] Plugin fails to load on OBS 30.2 Flatpak (Issue #436)
It seams that the main problem is that the flatpak obs studio 30.2.x versions does not allow to load plugins installed manually into the .var/app/com.obsproject.Studio/config/obs-studio/plugins folder.
Reference: obsproject/obs-studio#10981 (comment)<obsproject/obs-studio#10981 (comment)>
My failure is similar to the @Dekomoro<https://github.com/Dekomoro> log.
I found a workaround, downgrading to the 30.1.2 flatpak version and the plugins loads fine. More info (in spanish, sorry): https://cursosdedesarrollo.com/2024/07/solucion-a-los-problemas-con-la-version-30-2-x-de-obs-studio-via-flatpak-y-el-plugin-obs-multi-rtmp/
―
Reply to this email directly, view it on GitHub<#436 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEAUMEYKF3RMPADIJ5MRXADZOIKTRAVCNFSM6AAAAABK3XWH2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJSGM3DEMJRGA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
@sorayuki I wanna help. But, first, we need to fix the plugin compilation for ubuntu 24.04 my actual so. And later create a flatpak for the plugin. How I can help you with the first task? |
No problem to compile this in Ubuntu 22.04. A simple way to do this is by editing CMakePresets.json and adding the flag "CMAKE_COMPILE WARNING_AS_ERROR: false" in general template presets or in your case in the cacheVariables of linux-x86_64 section.
Another history is how to create a flatpak of this. I hate Snap and Flatpak and have no idea how to make that... Of course, ensure to install all necessary dependencies. @see: https://github.com/obsproject/obs-plugintemplate?tab=readme-ov-file#linux |
I found that fedora is far different from what I have tried when studying in college. The package manager disappeared and replaced by a helpless appstore. |
Done. But with error result:
I´ll search the information to build the flatpak for @sorayuki |
I've created a temporary repository to help @sorayuki with the flatpak version: I´ve copy and tried to convert the files from another examples like: Basically are three file:
I've created a README.md that should help with the build and install the package. But shows me some errors during te package process: It seems not to recognize the plugin's code from cmake-ninja I hope this be helpful. |
Any progress on this? i want to use multi-rtmp on flatpak but I cant right now.. |
According to the discussion in OBS official discord channel, plugin can't be installed via copy files into its flatpak container since 30.2.
I didn't investigate how to make it work for flatpak yet due to a lack of mental energy.
…________________________________
From: OmriOn ***@***.***>
Sent: Wednesday, August 7, 2024 7:08:00 PM
To: sorayuki/obs-multi-rtmp ***@***.***>
Cc: 雷Q ***@***.***>; Mention ***@***.***>
Subject: Re: [sorayuki/obs-multi-rtmp] Plugin fails to load on OBS 30.2 Flatpak (Issue #436)
Any progress on this? i want to use multi-rtmp on flatpak but I cant right now..
―
Reply to this email directly, view it on GitHub<#436 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEAUME6MC5VWHEN3S5DLHODZQH5ZBAVCNFSM6AAAAABK3XWH2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZTGIYTEOBWG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I just tried it on a fresh install of Ubuntu 24.04 and works fine. Note that the deb version of OBS Studio (30.2.2) will be installed during the build process if it was not already installed. Some warnings will be displayed during the compilation process, but these are not real errors, just warnings.
However, I forked and made some minor changes, fixing some details and telling the GCC compiler not to complain about shadowing. Now GCC builds without warnings.
Anyway, if your goal is to use the git repo to generate the flatpak package, the build process will take place in the sandbox virtual environment of the flatpak builder. So there's no need to do this build directly on your system. I've created a small flatpak extension project. The readme contains instructions on how to build, install or even create a flatpak file. I have checked that this works fine with the OBS Studio 30.2.2 flatpak version installed on Ubuntu 24.04 from Flathub. https://github.com/carlosbet/com.obsproject.Studio.Plugin.obs-multi-rtmp.git A small issue here is that @sorayuki made some changes to the cmake helper of the obs-plugintemplate for Linux that caused the final files to not be installed in the correct locations. I think SoraYuki's goal here was to create a normalized tree of directories for output when running Github actions or similar. However, I'm not sure that's the best place to do it. Just for that reason, I'm using a branch of my fork with the original obs-plugintemplate code instead of using the @sorayuki repo directly. On the other hand, about publishing this on Flathub... In theory, anyone can publish a flatpak package, even if they are not the owner of the application they are publishing. Or so I understood. But I think the right person for this is @sorayuki or another person more involved in this project. I am not even a streamer. I just came here after seeing claims help in a Twitch streaming. If the goal is to have the plugin appear directly in the OBS Studio app (Flathub) plugins section... I saw a guide for this, but now I can't find the link. Sorry. Hope it helps. And finally, if you are reading this, you are a streamer and this software helps you. Please consider donating to @sorayuki. We all like to see our work appreciated. Thanks. |
I intentionally modified the cmake json file to disable warning as error because my code generating a lot of warnings.
I found it installed in different location for different distribution and see into the source code of OBS to find a permanent place to have plugin installed (which you saw in the release page). But it now didn't work with the flatpak system...
By the way it has nothing to do with the donation for "a lack of mental energy". Just because the day job as a programmer in an online video service company takes them all.
…________________________________
From: Carlos Bello ***@***.***>
Sent: Thursday, August 8, 2024 9:42:46 AM
To: sorayuki/obs-multi-rtmp ***@***.***>
Cc: 雷Q ***@***.***>; Mention ***@***.***>
Subject: Re: [sorayuki/obs-multi-rtmp] Plugin fails to load on OBS 30.2 Flatpak (Issue #436)
I just tried it on a fresh install (Virtualbox) of Ubuntu 24.04 and works fine. Note that the deb version of OBS Studio (30.2.2) will be installed during the build process if it was not already installed. Some warnings will be displayed during the compilation process, but these are not real errors, just warnings.
Can follow these steps to reproduce:
sudo apt install git zsh cmake ninja-build pkg-config build-essential libobs-dev qt6-base-dev libqt6svg6-dev qt6-base-private-dev
git clone https://github.com/sorayuki/obs-multi-rtmp
cd obs-multi-rtmp
sed -i '94s/$/,/;94a\ "CMAKE_COMPILE_WARNING_AS_ERROR": false' CMakePresets.json
zsh .github/scripts/build-linux
mkdir -p ~/.config/obs-studio/plugins/
cp -r ./release/RelWithDebInfo/dist/obs-multi-rtmp ~/.config/obs-studio/plugins/
obs
However, I forked and made some minor changes, fixing some details and telling the GCC compiler not to complain about shadowing. Now GCC builds without warnings.
git clone -b minorFixes https://github.com/carlosbet/obs-multi-rtmp.git
Anyway, if your goal is to use the git repo to generate the flatpak package, the build process will take place in the sandbox virtual environment of the flatpak builder. So there's no need to do this build directly on your system.
I've created a small flatpak extension project. The readme contains instructions on how to build, install or even create a flatpak file. I have checked that this works fine with the OBS Studio 30.2.2 flatpak version installed on Ubuntu 24.04 from Flathub.
https://github.com/carlosbet/com.obsproject.Studio.Plugin.obs-multi-rtmp.git
A small issue here is that @sorayuki<https://github.com/sorayuki> made some changes to the cmake helper of the obs-plugintemplate for Linux that caused the final files to not be installed in the correct locations. I think SoraYuki's goal here was to create a normalized tree of directories for output when running Github actions or similar. However, I'm not sure that's the best place to do it. Just for that reason, I'm using a branch of my fork with the original obs-plugintemplate code instead of using the @sorayuki<https://github.com/sorayuki> repo directly.
On the other hand, about publishing this on Flathub... In theory, anyone can publish a flatpak package, even if they are not the owner of the application they are publishing. Or so I understood. But I think the right person for this is @sorayuki<https://github.com/sorayuki> or another person more involved in this project. I am not even a streamer. I just came here after seeing claims help in a Twitch streaming.
If the goal is to have the plugin appear directly in the OBS Studio app (Flathub) plugins section... I saw a guide for this, but now I can't find the link. Sorry.
Hope it helps.
And finally, if you are reading this, you are a streamer and this software helps you. Please consider donating to @sorayuki<https://github.com/sorayuki>. We all like to see our work appreciated. Thanks.
―
Reply to this email directly, view it on GitHub<#436 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEAUME4VBWWOUOAAZHA5UT3ZQLEJNAVCNFSM6AAAAABK3XWH2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZUG43TANJSG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thank you for the example. I will try to understand how it works. Would you submit a pull request, or I can directly merge your repository.
…________________________________
From: 雷 鸣 ***@***.***>
Sent: Thursday, August 8, 2024 10:07:47 AM
To: sorayuki/obs-multi-rtmp ***@***.***>; sorayuki/obs-multi-rtmp ***@***.***>
Cc: Mention ***@***.***>
Subject: Re: [sorayuki/obs-multi-rtmp] Plugin fails to load on OBS 30.2 Flatpak (Issue #436)
I intentionally modified the cmake json file to disable warning as error because my code generating a lot of warnings.
I found it installed in different location for different distribution and see into the source code of OBS to find a permanent place to have plugin installed (which you saw in the release page). But it now didn't work with the flatpak system...
By the way it has nothing to do with the donation for "a lack of mental energy". Just because the day job as a programmer in an online video service company takes them all.
________________________________
From: Carlos Bello ***@***.***>
Sent: Thursday, August 8, 2024 9:42:46 AM
To: sorayuki/obs-multi-rtmp ***@***.***>
Cc: 雷Q ***@***.***>; Mention ***@***.***>
Subject: Re: [sorayuki/obs-multi-rtmp] Plugin fails to load on OBS 30.2 Flatpak (Issue #436)
I just tried it on a fresh install (Virtualbox) of Ubuntu 24.04 and works fine. Note that the deb version of OBS Studio (30.2.2) will be installed during the build process if it was not already installed. Some warnings will be displayed during the compilation process, but these are not real errors, just warnings.
Can follow these steps to reproduce:
sudo apt install git zsh cmake ninja-build pkg-config build-essential libobs-dev qt6-base-dev libqt6svg6-dev qt6-base-private-dev
git clone https://github.com/sorayuki/obs-multi-rtmp
cd obs-multi-rtmp
sed -i '94s/$/,/;94a\ "CMAKE_COMPILE_WARNING_AS_ERROR": false' CMakePresets.json
zsh .github/scripts/build-linux
mkdir -p ~/.config/obs-studio/plugins/
cp -r ./release/RelWithDebInfo/dist/obs-multi-rtmp ~/.config/obs-studio/plugins/
obs
However, I forked and made some minor changes, fixing some details and telling the GCC compiler not to complain about shadowing. Now GCC builds without warnings.
git clone -b minorFixes https://github.com/carlosbet/obs-multi-rtmp.git
Anyway, if your goal is to use the git repo to generate the flatpak package, the build process will take place in the sandbox virtual environment of the flatpak builder. So there's no need to do this build directly on your system.
I've created a small flatpak extension project. The readme contains instructions on how to build, install or even create a flatpak file. I have checked that this works fine with the OBS Studio 30.2.2 flatpak version installed on Ubuntu 24.04 from Flathub.
https://github.com/carlosbet/com.obsproject.Studio.Plugin.obs-multi-rtmp.git
A small issue here is that @sorayuki<https://github.com/sorayuki> made some changes to the cmake helper of the obs-plugintemplate for Linux that caused the final files to not be installed in the correct locations. I think SoraYuki's goal here was to create a normalized tree of directories for output when running Github actions or similar. However, I'm not sure that's the best place to do it. Just for that reason, I'm using a branch of my fork with the original obs-plugintemplate code instead of using the @sorayuki<https://github.com/sorayuki> repo directly.
On the other hand, about publishing this on Flathub... In theory, anyone can publish a flatpak package, even if they are not the owner of the application they are publishing. Or so I understood. But I think the right person for this is @sorayuki<https://github.com/sorayuki> or another person more involved in this project. I am not even a streamer. I just came here after seeing claims help in a Twitch streaming.
If the goal is to have the plugin appear directly in the OBS Studio app (Flathub) plugins section... I saw a guide for this, but now I can't find the link. Sorry.
Hope it helps.
And finally, if you are reading this, you are a streamer and this software helps you. Please consider donating to @sorayuki<https://github.com/sorayuki>. We all like to see our work appreciated. Thanks.
―
Reply to this email directly, view it on GitHub<#436 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEAUME4VBWWOUOAAZHA5UT3ZQLEJNAVCNFSM6AAAAABK3XWH2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZUG43TANJSG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Of course, I understand you @sorayuki. Unfortunately, we all have too much work and not enough free time for our hobbies. But it never hurts to remind people that they can donate. A lot of people just complain and never contribute. I submitted a pull request with the changes made in the fork. For the flatpak project itself, it is usually a separate project. Do not merge it directly into the plugin project. Of course, you can copy it and add it to your repo as a new project if you wish. |
@carlosbet Great Job. Much better than my failed repo XD I've tried to compile your flatpak repo in Ubuntu 24.04 without problems. But in my Ubuntu 24.04 does not work the installatin You plugin repo works like a charm in Ubuntu 24.04. The next phase is to create the flathub repository to publish it to flathub based in your repo :) |
For those with the specific
I am not sure if this is a problem with flatpack itself or OBS. Edit: Looking into this further it looks like something in the OBS flatpak is mishandling lib*.so.0 symlinks:
|
The error I get is
error: os_dlopen(/home/deko/.var/app/com.obsproject.Studio/config/obs-studio/plugins/obs-multi-rtmp/bin/64bit/obs-multi-rtmp.so->/home/deko/.var/app/com.obsproject.Studio/config/obs-studio/plugins/obs-multi-rtmp/bin/64bit/obs-multi-rtmp.so): libobs-frontend-api.so.0: cannot open shared object file: No such file or directory
Seemingly related to the new frontend code, or qt version.
Consider possibly releasing the plugin on flathub like a few other plugins do(A good example of someone doing this is https://github.com/flathub/com.obsproject.Studio.Plugin.waveform) or figuring out a way to compile with matching qt versions to the flatpak.
The text was updated successfully, but these errors were encountered: