Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qt creator can't add cmake tools from qt6 cross build
Forum Update on Monday, May 27th 2025

qt creator can't add cmake tools from qt6 cross build

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 289 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pickyuan
    wrote on last edited by pickyuan
    #1

    I cross compiled qt6 for NXP i.mx6 device, and install it to my host pc.
    I can manually build qt6 project use ./bin/qt-cmake command line. but I can't itegrate it to qt creator

    Manual add my build qt-cmake to qt creator cmake tools via
    Edit -> Preference -> CMake -> Tools
    failed, I monitor that qt creator detect cmake tools by run cmake -E capabilities

    the cmake on my host pc run ok
    $ cmake -E capabilities
    {"fileApi":{"requests":[{"kind":"codemodel","version":[{"major":2,"minor":4}]},{"kind":"cache","version":[{"major":2,"minor":0}]},{"kind":"cmakeFiles","version":[{"major":1,"minor":0}]},{"kind":"toolchains","version":[{"major":1,"minor":0}]}]},"generators":[{"extraGenerators":[],"name":"Watcom WMake","platformSupport":false,"toolsetSupport":false},{"extraGenerators":[],"name":"Ninja Multi-Config","platformSupport":false,"toolsetSupport":false},{"extraGenerators":["CodeBlocks","CodeLite","Eclipse CDT4","Kate","Sublime Text 2"],"name":"Ninja","platformSupport":false,"toolsetSupport":false},{"extraGenerators":["CodeBlocks","CodeLite","Eclipse CDT4","Kate","Sublime Text 2"],"name":"Unix Makefiles","platformSupport":false,"toolsetSupport":false},{"extraGenerators":[],"name":"Green Hills MULTI","platformSupport":true,"toolsetSupport":true}],"serverMode":false,"version":{"isDirty":false,"major":3,"minor":24,"patch":2,"string":"3.24.2","suffix":""}}

    but my build run failed.
    $ ./bin/qt-cmake -E capabilities
    CMake Error: Unknown argument -E
    CMake Error: Run 'cmake --help' for all supported options.

    How can I add my built qt version to qt creator, so I can develop my project using qt creator, instead of command line.

    cristian-adamC 1 Reply Last reply
    0
    • P pickyuan

      I cross compiled qt6 for NXP i.mx6 device, and install it to my host pc.
      I can manually build qt6 project use ./bin/qt-cmake command line. but I can't itegrate it to qt creator

      Manual add my build qt-cmake to qt creator cmake tools via
      Edit -> Preference -> CMake -> Tools
      failed, I monitor that qt creator detect cmake tools by run cmake -E capabilities

      the cmake on my host pc run ok
      $ cmake -E capabilities
      {"fileApi":{"requests":[{"kind":"codemodel","version":[{"major":2,"minor":4}]},{"kind":"cache","version":[{"major":2,"minor":0}]},{"kind":"cmakeFiles","version":[{"major":1,"minor":0}]},{"kind":"toolchains","version":[{"major":1,"minor":0}]}]},"generators":[{"extraGenerators":[],"name":"Watcom WMake","platformSupport":false,"toolsetSupport":false},{"extraGenerators":[],"name":"Ninja Multi-Config","platformSupport":false,"toolsetSupport":false},{"extraGenerators":["CodeBlocks","CodeLite","Eclipse CDT4","Kate","Sublime Text 2"],"name":"Ninja","platformSupport":false,"toolsetSupport":false},{"extraGenerators":["CodeBlocks","CodeLite","Eclipse CDT4","Kate","Sublime Text 2"],"name":"Unix Makefiles","platformSupport":false,"toolsetSupport":false},{"extraGenerators":[],"name":"Green Hills MULTI","platformSupport":true,"toolsetSupport":true}],"serverMode":false,"version":{"isDirty":false,"major":3,"minor":24,"patch":2,"string":"3.24.2","suffix":""}}

      but my build run failed.
      $ ./bin/qt-cmake -E capabilities
      CMake Error: Unknown argument -E
      CMake Error: Run 'cmake --help' for all supported options.

      How can I add my built qt version to qt creator, so I can develop my project using qt creator, instead of command line.

      cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      qt-cmake is just a wrapper that sets the right CMAKE_TOOLCHAIN_FILE parameter for CMake.

      It's not meant to be used by Qt Creator.

      If you want to have the same behavior in Qt Creator, you need to create a Kit that has the CMAKE_TOOLCHAIN_FILE parameter in the Kit's CMake parameters dialog.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved