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

Q_NAMESPACE breaks moc build of KDE's networkmanager-qt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.8
    • Build tools: moc
    • None

    Description

      Using qtbase commit 21b7661a797ecf77fbcad4380e6dcb2ade929a18 and KDE's latest NetworkManager-Qt, which is 46fa01a21c5f296579c07aa2513904260efb55ff, the build dies with the following error message:

      /home/turbo-hipster/git/6965c80289d6/networkmanager-qt/src/manager.h:44: Error: Namespace declaration lacks Q_NAMESPACE macro.
      

      The file has a Q_FLAGS within a namespace block. The build passes for Qt 5.5, 5.6 and 5.7 – the matrix. A full build log is available.

      I have no clue if this is a result of introduction of Q_NAMESPACE or whether moc just started reporting something which never worked before.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jkt Jan Kundrát
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes