Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-187

Ninja can't be found in path on Linux/macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • QtGP 1.1
    • QtGP 1.0
    • QtGP: General
    • None

    Description

      The fallback to finding ninja in PATH doesn't work on non-Windows systems. The current implementation searches for a component in PATH that ends with "Ninja" or "ninja". This works fine on Windows, if for example C:\Program Files\Ninja has been added to PATH. The most likely situation on Linux is that ninja is located in /usr/bin/ninja and /usr/bin is in PATH. This means the PATH component doesn't match and ninja won't be found.

      Also the error message is cryptic. "> No valid path to Ninja found. From path: null/ninja." Improvement here is the search returns null?

      Attachments

        Issue Links

          For Gerrit Dashboard: QTTA-187
          # Subject Branch Project Status CR V

          Activity

            People

              teko Tero Koponen
              olvuolte Olli Vuolteenaho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change