Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. windeployqt Qt 6.5 failed. Translation not found?
Forum Updated to NodeBB v4.3 + New Features

windeployqt Qt 6.5 failed. Translation not found?

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Volker75
    wrote on last edited by Volker75
    #1

    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

    RabitR 1 Reply Last reply
    0
    • V Volker75

      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

      RabitR Offline
      RabitR Offline
      Rabit
      wrote on last edited by Rabit
      #2

      @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#n1015

      With --no-translations it works, but it's a bad workaround since we need translations... Hopefully this will help to find the actual issue.

      SGaistS 1 Reply Last reply
      0
      • RabitR Rabit

        @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#n1015

        With --no-translations it works, but it's a bad workaround since we need translations... Hopefully this will help to find the actual issue.

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Volker75
          wrote on last edited by
          #4

          Thank you for your answer.

          Looks like this is fixed now. See
          https://bugreports.qt.io/browse/QTBUG-112204

          1 Reply Last reply
          1
          • V Volker75 has marked this topic as solved on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved