Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30321

lrelease does not process PRO files in Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 5.0.2
    • 5.0.1
    • Tools: Linguist
    • None
    • 05dab891649b76fe7351d51950edf3caba2bfece

    Description

      Whenever I run

      lrelease C:\Temp\MyProject\MyProject.pro

      for building the project's translations, I get the following error:

      The directory name is invalid.
      Could not find qmake configuration file default.
      lrelease error: cannot process project file 'C:\Temp\MyProject\MyProject.pro'.

      lupdate for the same project works fine and generates/updates the TS files mentioned in the TRANSLATIONS variable.

      Steps to reproduce:

      1. Start Qt Creator, File -> New File or Project -> Qt GUI Application, name "MyProject", leave other options default.
      2. Open MyProject.pro file and append the following line:

        TRANSLATIONS += ru_RU.ts

      3. Run Tools -> External -> Linguist -> Update Translations (lupdate). The ru_RU.ts file appears in the project directory.
      4. Run Tools -> External -> Linguist -> Release Translations (lrelease). The tool outputs the error message and exits. QM file is not created.

      Qt Creator is not required, this can also be reproduced from command line.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            captainflint Konstantin Vlasov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes