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

Bernard Cafarelli voyageur at gentoo.org
Wed Sep 28 22:35:00 CEST 2016


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 <kensington at gentoo.org> 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

-- 
Bernard Cafarelli (Voyageur)
Gentoo developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x2goclient-4.0.5.2-rcc_to_qrc.patch
Type: text/x-patch
Size: 12991 bytes
Desc: not available
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20160928/4cc91b76/attachment.bin>


More information about the x2go-dev mailing list