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

Generated Makefile doesn't contain moc calls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.4
    • 6.2.2
    • Build tools: qmake
    • None
    • Windows

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes