Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20392

CMake: Qt Creator is unable to configure and build a project with CMAKE_TOOLCHAIN_FILE

    XMLWordPrintable

Details

    Description

      In the CMake world it is very common that one would use a toolchain file in order to cross-compile projects.

      With Qt Creator I have tried two ways to configure the project:

      1. Setting CMAKE_TOOLCHAIN_FILE in the CMake project settings as a variable. For some reason the CMakeCache.txt doesn't contain the entry.

      2. Setting CMAKE_TOOLCHAIN_FILE In the CMake Kit configuration. This variable is passed as -D parameter to CMake in server mode. Somehow it doesn't end in the CMakeCache.txt file and it doesn't properly work. It produces x86 32bit binaries.

      In both cases QtCreator's .user file contains the CMAKE_TOOLCHAIN_FILE entry, but in the end the toolchain file was not used. The resulted binary was not ARM64.

      I have attached a screen cast showing my attempt to configure the project. Please note that the first version from command line worked as expected.

      I expect Qt Creator to support CMAKE_TOOLCHAIN_FILE case.

      Attachments

        Issue Links

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

          Activity

            People

              hunger Tobias Hunger
              cadam Cristian Adam
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes