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

Should mention about setting Ninja path is required on macOS

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 6.3.1, 6.4.0 Beta1
    • None
    • Documentation
    • None
    • macOS
    • 8caa10b7e7 (qt/qtdoc/dev) 8caa10b7e7 (qt/tqtc-qtdoc/dev) 63d2e0b6ee (qt/qtdoc/6.3) 63d2e0b6ee (qt/qtdoc/6.3.1) 63d2e0b6ee (qt/tqtc-qtdoc/6.3) 63d2e0b6ee (qt/tqtc-qtdoc/6.3.1) 8caa10b7e7 (qt/qtdoc/6.4) 8caa10b7e7 (qt/tqtc-qtdoc/6.4)
    • DaVinci 55, DaVinci 56

    Description

      Even though https://doc.qt.io/qt-6/qt6-buildsystem.html mentions that Ninja is required,
      it is better that https://doc.qt.io/qt-6/macos-building.html mentions setting Ninja path as an environment variable is necessary to build Qt with CMake.

      When it is not set, configuration gives errors as below. It is not easy to know the reason of the error is not setting Ninja path.

      
      /Users/qtsupport/Downloads/qt-everywhere-src-6.2.1/qtbase/configure -top-level -static -debug-and-release -commercial -prefix /Users/qtsupport/opt/qt6-2-1-static-debug-and-release -cmake-generator 'Ninja Multi-Config' -- '-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64
      
      CMake Error: CMake was unable to find a build program corresponding to "Ninja Multi-Config".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
      CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
      CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
      -- Configuring incomplete, errors occurred!
      See also "/Users/qtsupport/tmp/qt6.2.1-static-debug-release/CMakeFiles/CMakeOutput.log".
      CMake Error at /Users/qtsupport/Downloads/qt-everywhere-src-6.2.1/qtbase/cmake/QtProcessConfigureArgs.cmake:947 (message):
      
      CMake exited with code 1.
      

      Attachments

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

        Activity

          People

            andreas.eliasson Andreas Eliasson
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes