Skip to content

frontend: Cleanup Qt GuiPrivate linkage#12328

Merged
RytoEX merged 1 commit intoobsproject:masterfrom
tytan652:no-qt-gui-private
Dec 17, 2025
Merged

frontend: Cleanup Qt GuiPrivate linkage#12328
RytoEX merged 1 commit intoobsproject:masterfrom
tytan652:no-qt-gui-private

Conversation

@tytan652
Copy link
Collaborator

@tytan652 tytan652 commented Jul 1, 2025

Description

Closes #12321

With Qt 6.9.0 and later, we no longer need to link with Qt::GuiPrivate.
There was also some unneeded linkage.

Motivation and Context

As documented in #12321, 6.10 change some behaviors around private targets. Avoiding linking as of 6.9.0 is the cleanest path.

How Has This Been Tested?

CI on my fork is green.

Types of changes

  • Preemptive Bug fix (non-breaking change which fixes an issue)
  • Code cleanup (non-breaking change which makes code smaller or more readable)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@tytan652 tytan652 mentioned this pull request Jul 1, 2025
6 tasks
@tytan652 tytan652 added Linux Affects Linux Other OS (*nix) Other Unix-like systems that are not officially supported (e.g. OpenBSD) Bug Fix Non-breaking change which fixes an issue Code Cleanup Non-breaking change which makes code smaller or more readable labels Jul 1, 2025
@tytan652 tytan652 force-pushed the no-qt-gui-private branch from 786b05c to 98ba790 Compare July 2, 2025 11:18
Remove unneeded linkages and guard needed ones for Qt versions earlier
than 6.9.0.
@tytan652 tytan652 force-pushed the no-qt-gui-private branch from 98ba790 to 26dfacb Compare July 2, 2025 11:19
@Chiitoo
Copy link
Contributor

Chiitoo commented Jul 2, 2025

Looks good here now as well.

Thank you!

@Conan-Kudo
Copy link
Contributor

LGTM as well. Thanks for this!

@RytoEX RytoEX self-assigned this Sep 4, 2025
@xiota
Copy link

xiota commented Oct 12, 2025

Would be nice if this is merged. Qt 6.10 has been released, and Arch Linux is already using it.

gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Dec 16, 2025
While obs-studio itself is built with 'disable-werror' these days,
'-Werror' in the the 'libobs.pc.in' causes other projects potentially
unwanted build issues [1].

Also add the qt-6.10 patch to the git build, since the fix
is still not merged upstream after half a year [2][3], and qt-6.10
has been out in the wilds for a while now.

1. https://bugs.gentoo.org/966311
2. obsproject/obs-studio#12321
3. obsproject/obs-studio#12328

Bug: https://bugs.gentoo.org/966311
Signed-off-by: Jimi Huotari <[email protected]>
@RytoEX RytoEX merged commit c142571 into obsproject:master Dec 17, 2025
15 checks passed
@RytoEX RytoEX added this to the OBS Studio 32.1 milestone Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fix Non-breaking change which fixes an issue Code Cleanup Non-breaking change which makes code smaller or more readable Linux Affects Linux Other OS (*nix) Other Unix-like systems that are not officially supported (e.g. OpenBSD)

Projects

Status: Ready For Merge

Development

Successfully merging this pull request may close these issues.

6 participants