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

qt-cmake-standalone-test does not work with Qt binaries from online installer

    XMLWordPrintable

Details

    Description

      Trying to build auto tests using Qt from the online installer using qt-cmake-standalone-test fails with:

      ~/development/build/test$ ~/Qt/6.0.1/gcc_64/bin/qt-cmake-standalone-test ~/development/qt/qt5/qtbase/tests/auto/corelib/global/qglobal
      -- The C compiler identification is GNU 9.3.0
      -- The CXX compiler identification is GNU 9.3.0
      -- The ASM compiler identification is GNU
      -- Found assembler: /usr/bin/gcc
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/gcc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/g++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Looking for pthread.h
      -- Looking for pthread.h - found
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
      -- Check if compiler accepts -pthread
      -- Check if compiler accepts -pthread - yes
      -- Found Threads: TRUE  
      -- Check for feature set changes
      -- Setting local standalone test install prefix (non-cached) to '/home/sapiippo/development/build/test/fake_prefix'.
      -- Configuring done
      CMake Error in /home/sapiippo/development/qt/qt5/qtbase/tests/auto/corelib/global/qglobal/CMakeLists.txt:
        Error evaluating generator expression:
      
          $<TARGET_FILE:Qt6::moc>
      
        No target "Qt6::moc"
      
      
      CMake Error: AUTOMOC for target tst_qglobal: AUTOMOC_EXECUTABLE evaluates to an empty value
      CMake Generate step failed.  Build files cannot be regenerated correctly.
      

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              sapiippo Samuli Piippo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes