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

Improve generated qt.toolchain.cmake usability

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 RC
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      Android, WebAssembly

      Description

      For platforms like Android and WebAssembly a separate toolchain file needs to be chainloaded from either the Android NDK or emscripten SDK.

      When using a Qt online installed Qt's qt-cmake on the command line to configure a a project, configuration fails because the chainloaded toolchain file path from the CI is not present on the local machine.
      The user is then forced to explicitly pass a -DQT_CHAINLOAD_TOOLCHAIN_FILE to their local SDK toolchain path. The Android qt.toolchain.cmake at least mentions the option, the WebAssembly one doesn't.

      We should investigate if it's feasible to detect the NDK or emsdk env vars and derive the toolchain file paths from them.

      I'm guessing when using Qt Creator, it's not a problem because Creator sets the relevant options.

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: