windeployqt Qt 6.5 failed. Translation not found?
-
Hallo,
i have converted my project from Qt 5.15 to Qt 6.5.
I can compile and run the software now,
but qtwindeployqt failed.The last 3 lines are:
qschannelbackend.dll is up to date. Creating qt_ar.qm... Cannot open .: Zugriff verweigert
(Zugriff verweigert == Access denied)
So maybe it can't load or save the "qt_ar.qm" file?!
But how can i fix that? (I read somewhere it might be 32 bit problem, but i uninstalled all old Qt versions and installed only the latest 6.5. It doesn't help)PS: qt_ar.qm is not my translation file. My translation files are called different and they are found if i start the application. It is the qt generated translation file for default button text.
Ideas and solutions are welcome.
Thank you -
@Volker75 I can confirm, working on the same issue here: https://github.com/state-of-the-art/qt6-docker/issues/3 - seems windeployqt is broken in 6.5. Hopefully someone from qt team can help here... I think the issue is that windeployqt runs ltranslate incorrectly: if we will enable
--verbose 2
, then the last command that executes and fail will be:Creating qt_ar.qm... Running: lconvert -o Z:\home\user\build\deploy\translations\qt_ar.qm . .. assistant_ar.qm [...] qtwebsockets_ko.qm qtwebsockets_uk.qm Cannot open .: Access denied.
So this
Cannot open .: Access denied.
is actually an output of lconvert command which is running here: https://code.qt.io/cgit/qt/qtbase.git/tree/src/tools/windeployqt/main.cpp?h=6.5#n1015With
--no-translations
it works, but it's a bad workaround since we need translations... Hopefully this will help to find the actual issue. -
Hi guys,
I would recommend opening a ticket on the bug report system and mention you also found a "workaround".
A minimal example showing the issue would be nice as well so people can more easily replicate the issue.
-
Thank you for your answer.
Looks like this is fixed now. See
https://bugreports.qt.io/browse/QTBUG-112204 -