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

QtCreator kits created with sdktool add empty inital cmake parameters

    XMLWordPrintable

Details

    Description

      I use the sdktool to create my kit, compilers, debugger, cmake. This makes initing qtcreator really nice.

      I have to add CMAKE_TOOLCHAIN_FILE cmake Parameter in the cmake configuration in the kit, otherwise the kit cannot configure my projekt (was the same for qtcreator versions < 4.13) (see appended image).

       

      Since qtcreator 4.13, I get this when opening projects:

      Parse error in command line argument: -D

      Should be: VAR:type=value

      CMake Error: No cmake script provided.

      CMake Error: Problem processing arguments. Aborting.

       

      I found out, that in the error case, 2 entries "MACSX0" are in the profiles.xml.

      After opening "CMake Configuration" in kit, clicking inside it, clicking "Apply", these entries disappear. I then delete CMakeLists.txt.user and reconfigure the project. The configration of the project works.

       

      I also use a template to create the CmakeLists.txt.user files. Using this, the error does not occur, as the additional cmake parameters are removed. But opening other projekts with this kit causes the error to occur again.

       

      Seems that "addKit" in sdktool qtcreator 4.13 had some changes that caused that error.

      Unfortunately, sdktool is not documented for cmake.

      https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/src/tools/sdktool/README.md

      sdktool made qtcreator so much more usable. Would be nice, if that could be fixed.

       

       

       

       

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            reinerhohn reinerhohn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes