Closed 3laws closed 2 years ago
Huh.. weird. Are you compiling using Qt5 or Qt6? OBS' cmake autodetects which libs are installed and uses Qt6 if both are installed. The RPMs are built with Qt5: https://github.com/mihawk90/obs-studio.spec/blob/3d4cd5c41320c76d767579f8596c8ad0da4299c1/obs-studio.spec#L57-L68
That said, since this is a Qt error it must be finding the libs somewhere... so I'm guessing a version mismatch but I don't know how that would happen unless there was yet another Qt5 update on F37.
Is the RPM Fusion version working?
Wish I had an F37 install right about now so I could test this ;)
OK so I just checked and at least Qt wasn't updated:
z% dnf info qt5-qtbase-devel --releasever=37
Last metadata expiration check: 0:01:15 ago on Thu 06 Oct 2022 19:14:21 CEST.
Available Packages
Name : qt5-qtbase-devel
Version : 5.15.6
Release : 1.fc37
Architecture : i686
Size : 3.7 M
Source : qt5-qtbase-5.15.6-1.fc37.src.rpm
Repository : fedora
Summary : Development files for qt5-qtbase
URL : http://qt-project.org/
License : LGPLv2 with exceptions or GPLv3 with exceptions
Description : Development files for qt5-qtbase.
Name : qt5-qtbase-devel
Version : 5.15.6
Release : 1.fc37
Architecture : x86_64
Size : 3.5 M
Source : qt5-qtbase-5.15.6-1.fc37.src.rpm
Repository : fedora
Summary : Development files for qt5-qtbase
URL : http://qt-project.org/
License : LGPLv2 with exceptions or GPLv3 with exceptions
Description : Development files for qt5-qtbase.
z% cat Development/obs-studio.spec/f_upload/37/installed_pkgs.log | grep qtbase
qt5-qtbase-common-5.15.6-1.fc37.noarch 1663751656 76 d2ed413fc3782dc25167f7ec30cb80ce installed
qt5-qtbase-5.15.6-1.fc37.x86_64 1663751675 10517851 035ad2b5c822b9c1a29871273932d1e8 installed
qt5-qtbase-gui-5.15.6-1.fc37.x86_64 1663751675 21071657 869d9e60daa6fb9d3a6d8e17dc243846 installed
qt5-qtbase-devel-5.15.6-1.fc37.x86_64 1663751675 20023969 e9a2f318b2c2f29febe599c75869211c installed
qt5-qtbase-private-devel-5.15.6-1.fc37.x86_64 1663751675 7202582 3441e727efc13363e5cb5fb3ee082642 installed
So yeah not sure what's causing this.
I'm building with Qt6. Although I wasn't being clear enough. I am building from OBS' git, not this specific spec.
I said that as proof that my dependencies are correct for both building AND installing your RPM (which is a little redundant but I feel like I needed a point of reference).
I did not pasted the full logs tho, my bad:
And this is how it looks on my build
Uninstalling, reinstalling the RPM does not work.
X11 & Wayland ("native" and xcb) is the same story.
Looking at your logs it seems you are running a Qt6 plugin on a Qt5 OBS (thanks tytan652 on Discord) which is why Qt is is just noping out.
https://github.com/univrsal/input-overlay/releases/tag/v5.0.0
This is only for Qt6 unfortunately (from what I can tell anyway).
RPM Fusion (and by extension my build) are Qt5. Why they do this I don't know, I assume because they also ship obs-ndi in RPM Fusion and obs-ndi is not yet Qt6. This is a weird transition time where not all plugins are updated for Qt6 yet so you can run into these mismatches.
If you launch without plugins OBS will probably load just fine.
I was thinking about doing a qt6 build too but I haven't gotten around to it yet.
I did not know about NDI coming by default on Fusion's end, big oof tho obs-ndi has remarkably one of the slowest developments of the "big" plugins.
Looks like I will have to keep building my own for a while then. Appreciate the insight. Closing.
Fedora 37, following error when launching your RPM:
QWidget: Must construct a QApplication before a QWidget
I can run OBS built from source, master, 28.0.2 28.0.3 and release in both portable and "native". Libs are installed. All dependencies installed. Man, I feel like every time I come here is for simple stuff, but oh welp...