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

unable to load CML project with Qt 4 kit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 17.0.1
    • None
    • Windows

      CMake configuration step fails with:

      [cmake] Running C:\Program Files\CMake\bin\cmake.exe -S C:/Users/kamba/source/repos/medianxlofflinetools -B C:/Users/kamba/source/repos/medianxlofflinetools/build/Qt_4_8_7_MSVC2019_32bit-Debug "-DCMAKE_PREFIX_PATH:STRING=C:/Qt/4.8.7" "-DQT_QMAKE_EXECUTABLE:STRING=C:/Qt/4.8.7/bin/qmake.exe" "-DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON" "-DQT_MAINTENANCE_TOOL:FILEPATH=C:/Qt/MaintenanceTool.exe" "-DCMAKE_BUILD_TYPE:STRING=Debug" "-DCMAKE_GENERATOR:STRING=Ninja" "-DCMAKE_C_COMPILER:STRING=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/HostX86/x86/cl.exe" "-DCMAKE_CXX_COMPILER:STRING=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/HostX86/x86/cl.exe" "-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=C:\Users\kamba\source\repos\medianxlofflinetools\build\Qt_4_8_7_MSVC2019_32bit-Debug/.qtc/package-manager/auto-setup.cmake" in C:\Users\kamba\source\repos\medianxlofflinetools\build\Qt_4_8_7_MSVC2019_32bit-Debug.
      ...
      [cmake] -- Qt Creator: Could not find the component platform for '4.8.7' required by the MaintenanceTool. This can happen with a non Qt SDK installation (e.g. system Linux or macOS homebrew).
      [cmake] CMake Error at build/Qt_4_8_7_MSVC2019_32bit-Debug/.qtc/package-manager/maintenance_tool_provider.cmake:315 (find_package):
      [cmake]   Could not find a package configuration file provided by "Qt4" with any of
      [cmake]   the following names:
      [cmake] 
      [cmake]     Qt4Config.cmake
      [cmake]     qt4-config.cmake
      [cmake] 
      [cmake]   Add the installation prefix of "Qt4" to CMAKE_PREFIX_PATH or set "Qt4_DIR"
      [cmake]   to a directory containing one of the above files.  If "Qt4" provides a
      [cmake]   separate development package or SDK, be sure it has been installed.
      

      However, configuring on the command line works fine:

      cmake -S . -B build -D "CMAKE_PREFIX_PATH=C:/Qt/4.8.7" -G Ninja
      

      QMake project also builds fine with this 4.8.x kit in Qt Creator.

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

            cadam Cristian Adam
            kambala Andrey Filipenkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes