Subject: Bug#1096: [X2Go-Dev] Bug#1096: Qt5 build: qmake does not bundle resources correctly

From: Mike Gabriel <[email-masked]>
Date: Sat, 08 Oct 2016 22:25:24 +0000

Control: tags -1 patch

On  Mi 28 Sep 2016 22:35:00 CEST, Bernard Cafarelli wrote:

> Package: x2goclient
> Version: 4.0.5.2
>
> While updating the x2goclient Gentoo package to support a Qt5 build, I
> found out that the binary did not have bundled resources (images and
> translations), even if the same build with Qt4 worked fine.
> Sample errors:
> x2go-WARNING-1> "Non-fatal: can't load
> translator: :/i18n/x2goclient_fr_fr"
> [...]
> Cannot open file ':/img/svg/x2gologo.svg', because: No such file or
> directory
> [...]
>
> Huge thanks to Michael Palimaka <[email-masked]> who found out
> the root cause:
> rcc is the compiled version of qrc, so it looks like for some reason
> qmake5 assumes the rcc files are already compiled, and bundles them
> as-is instead of processing them
>
> The fix is to rename the resources files from .rcc to .qrc (and update
> the project file accordingly). Patch attached, tested and working fine
> on Gentoo with Qt 4.8.7 and 5.6.1

Thanks for providing this patch. Tagging the bug report accordingly.

Mike
-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
mobile: +49 (1520) 1976 148
landline: +49 (4354) 8390 139

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: [email-masked], http://das-netzwerkteam.de