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

Generated MSVC project fails with DBUS_ADAPTORS or DBUS_INTERFACES and moc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.1.0
    • Build tools: qmake, D-Bus
    • None
    • Windows 7 64bit, Visual Studio 2010 SP1 Express Edition
    • 1d0715fde129ba36b39bb8ab98355c74b9d78e6a

    Description

      The qmake MSVC project generator doesn't correctly support DBUS_ADAPTORS or DBUS_INTERFACES under QT += dbus, if the project also contains other moccable files. The project correctly runs qdbusxml2cpp to generate C++ source and header files from the XML input files, but does not run moc on those generated header files.

      The fix is surprisingly simple, and a patch is attached. It seems that each VCFilter needs a unique name. By changing the .name of the relevant QMAKE_EXTRA_COMPILERS entry, we ensure that its VCFilter can be correctly stored and retreived in VCProjectSingleConfig::ExtraCompilersFiles.

      Attachments

        For Gerrit Dashboard: QTBUG-32912
        # Subject Branch Project Status CR V

        Activity

          People

            jbornema Joerg Bornemann
            oktalist Mat Sutcliffe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes