Closed nbolton closed 2 months ago
I think you need qt6-base-private-dev
. But I don't use nor know much about Debian...
Yes, on Debian you need qt6-base-private-dev
for this. (Or disable the Qt 6 binding.)
I uploaded libportal 0.8.0 to Debian unstable recently. It builds the Qt 6 binding, but does not yet install it (that will require adding extra package names, which needs archive administrator approval).
Ideally libportal would be able to get the window ID without using Qt internals, like it did by using libqt5x11extras5-dev
for Qt 5, but that might not be possible in Qt 6.
If you're building libportal as a subproject of some larger project, you should disable all the backends that you aren't actively using.
@nbolton can you update us on if installing this package does the job for you?
I think you need
qt6-base-private-dev
Wonderful, that did the trick! Thanks for the help guys. It's hugely appreciated.
If you're building libportal as a subproject of some larger project, you should disable all the backends that you aren't actively using.
Yep, that worked too, thanks.
@whot Do you know if the qt6 backend is needed for Synergy? I can't see any mention of "qt" in PortalInputCapture.cpp
or PortalRemoteDesktop.cpp
so I added backend-qt6=disabled
to our meson.build
and it still seems to work fine. Edit: I'll close this since the original issue is resolved, but still curious to know if disabling the Qt backend is the right approach.
You would need backend-qt6
if you're using any method provided by portal-qt6.h
, often that would be xdp_parent_new_qt
.
You would need
backend-qt6
if you're using any method provided byportal-qt6.h
, often that would bexdp_parent_new_qt
.
Looks like we don't at the moment, as we only use remote desktop and input capture, but as we have a Qt GUI, perhaps we'll need some of those file functions in future when it's running as a Flatpak app.
Looks like we don't at the moment, as we only use remote desktop and input capture
Alright, so seems like you indeed do not need the backend for now.
perhaps we'll need some of those file functions in future when it's running as a Flatpak app
Sounds lovely! Let us know if you have any trouble or find any bugs when using them, the Qt integration is relatively new but seems to be doing well so far.
When I compile libportal on Debian 13 against Qt 6.6.2, I get the following error:
Here's my
dpkg
output:I see that the file is in the
qtbase
project: https://github.com/qt/qtbase/blob/dev/src/gui/kernel/qplatformintegration.hHowever, I do not appear to have the file on my computer:
Workaround 1: Disable
backend-qt6
Workaround 2: Delete the code that fails
Am I missing a
-dev
package or is there something else I'm doing wrong?