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

Generated Makefile doesn't contain moc calls

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 6.2.2
    • Fix Version/s: 6.4
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      1. Install Qt 6.2.2 from the installer
      2. Install QtMultimedia QtRemoteObjects and QtInterfaceFramework
      3. Open QtCreator
      4. Open the qface-tutorial in <Qt>\Examples\6.2.2\interfaceframework\qface-tutorial
      5. Build it

      The build fails with undefined references to metaObject functions because moc files where not generated.
      Checking the Makefile.debug in chapter4-simulation-behavior\backend_simulator shows no moc calls.

      The example can be fixed by adapting the paths slightly:

      1. Rename the backend_simulator.pro to backend.pro
      2. Rename the backend_simulator folder to backend
      3. Adapt the chapter4-simulation-behavior.pro to use the new backend folder

      Because of the shorter path the moc calls show up in the Makefile and everything works fine.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              gagi Dominik Holland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes