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

lupdate can't find some headers in certain circumstances

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.6, 5.2.0 Beta1
    • 4.8.0, 5.1.1
    • Tools: Linguist
    • None
    • Windows 7, Qt 4.8, lupdate 4.8.0
      Linux, Qt 5.1, lupdate 5.1
    • 92020773c1739feb4dc240827271720f615431d0,811f22d44edc4e57236afef0803ff18504bfedf6

    Description

      When invoking lupdate from the command line like the example below[1] you receive the message "[..]Qualifying with unknown namespace/class[..]" because lupdate can't find the associated header file (.h) to a source file (cpp) containing the 'tr' macro. This occurs because the source file includes the header file relatively to the 'include directives' (-I), using the form with brackets: <header.h>. lupdate doesn't look for the header file from the project file (.pro) directory but from the current directory. I guess it's a bug because in complex projects when there is some project file dependencies there is no way to solve this issue.

      [1]:

       lupdate directoy/my_project.pro
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            gburri Greg Burri
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes