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

Lupdate can't find header file (Qualifying with unknown namespace/class)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 5.15
    • Tools: Linguist
    • None
    • Windows

    Description

      Lupdate.exe can't find appropriate header for cpp file. As a result I am getting warning Qualifying with unknown namespace/class. That leads to wrong contexts in .ts files and unused translations in application.

      I am using usual cmake folder structure like this one:

      and source.cpp has such include:
      #include "Target/header.h"

      I am having warning when I call lupdate like this:

      lupdate -target-language de_DE D:\Target\include\Target\header.h D:\Target\src\source.cpp -ts D:\separate_files.ts

      D:/Target/src/source.cpp:8: Qualifying with unknown namespace/class ::Example

       

      Meanwhile it is working as expected when I call lupdate with folder as argument:

      lupdate -target-language de_DE D:\Target\ -ts D:\directory.ts

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            maks Maksym Magics
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes