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

cmake automoc error when configuring qtwayland (in autotests)

XMLWordPrintable

    • 87c0677c696962e7de78e5bea1dc74aac2ea2d27 (qt/qtwayland/dev)

      $ cmake ../qt6 -DBUILD_WITH_PCH=OFF -DFEATURE_developer_build=ON -DWARNINGS_ARE_ERRORS=OFF -DQT_BUILD_TESTS=ON -DQT_USE_CCACHE=ON -DCMAKE_BUILD_TYPE=Debug -GNinja
      

      ends with

      Qt is now configured for building. Just run 'cmake --build . --parallel'
      
      Once everything is built, Qt is installed. You should NOT run 'cmake --install .'
      Note that this build cannot be deployed to other machines or devices.
      
      To configure and build other Qt modules, you can use the following convenience script:
              /zhome/rutledge/dev/qt6-dbg/qtbase/bin/qt-configure-module
      
      If reconfiguration fails for some reason, try to remove 'CMakeCache.txt' from the build directory 
      
      -- Configuring done
      CMake Error: AUTOMOC for target SharedClientTest: The "moc" executable "/zhome/rutledge/dev/qt6-dbg/qtbase/libexec/moc" does not exist.
      CMake Generate step failed.  Build files cannot be regenerated correctly.
      

      I work around it by deleting tests/CMakeLists.txt for now. After Qt has been built, moc exists, and then it's ok to put it back.

        1. typescript
          100 kB
          Shawn Rutledge
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            semlanik Alexey Edelev
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes