Uploaded image for project: 'Qt Creator'
  1. Qt Creator

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


    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: Qt Creator 4.7.0-beta1
    • Fix Version/s: None
    • Labels:


      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.


          Issue Links

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



              • Assignee:
                hunger Tobias Hunger
                cadam Cristian Adam
              • Votes:
                0 Vote for this issue
                4 Start watching this issue


                • Created:

                  Gerrit Reviews

                  There are no open Gerrit changes