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

top-level configure returns with exit code != 0 if qt3d is checked out

    XMLWordPrintable

Details

    • All
    • bf5d1fe5422d3740985be2eacb35f3e971f2a39d (qt/qt3d/dev) e2d208747393ddde1f5f73901de32cdd9f45a445 (qt/qt3d/6.1)

    Description

      How to reproduce

      Checkout

      • the top-level repo at ed139ea47e21984e64a130b167ed715adf319234
      • qtbase at 4e5f203df63740d6a00c67d47b961ce04e740057
      • qt3d at 598b72dac2f467fcc244e0b7ef348c034daf428b

      Now configure a top-level build with our configure script.
      You may -skip qt3d.

      What happens?

      The configure script ends with the output

      -- Configuring done
      -- Generating done
      

      but the exit code is not zero.

      The actual build (of just qtbase) works fine.

      A top-level build with plain cmake does not exhibit this behavior.

      Analysis

      Further up, one sees the following output:

      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_FIND_LIBRARY_PREFIXES
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_FIND_LIBRARY_SUFFIXES
      

      This stems from the cmake -P call that runs QtProcessConfigureArgs.cmake.

      One of the configure.cmake files of qt3d gained a find_package call, leading to this error: https://codereview.qt-project.org/c/qt/qt3d/+/339049

      QtProcessConfigureArgs.cmake defines stubs for qt_find_package but not the plain CMake find_package.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              jbornema Joerg Bornemann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes