Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. cmake for QtCreator fails

cmake for QtCreator fails

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 49 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.
  • Y Offline
    Y Offline
    YamiTheWitch
    wrote last edited by
    #1

    Following the tutorial at https://github.com/qt-creator/qt-creator/blob/master/README.md#compiling-qt-creator
    I got until the point where it tells you to run the command:

    cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=/path/to/Qt;/path/to/llvm" /path/to/qtcreator_sources
    

    cmake stops with the following error code:

    -- Could NOT find Qt6Core5Compat (missing: Qt6Core5Compat_DIR)
    CMake Error at CMakeLists.txt:71 (find_package):
      Found package configuration file:
    
        /usr/local/Qt-6.9.0/lib/cmake/Qt6/Qt6Config.cmake
    
      but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
      FOUND.  Reason given by package:
    
      Failed to find required Qt component "Core5Compat".
    
      Expected Config file at
      "/usr/local/Qt-6.9.0/lib/cmake/Qt6Core5Compat/Qt6Core5CompatConfig.cmake"
      does NOT exist
    
    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote last edited by
      #2

      Hi, try running the MaintenanceTool again and go into Additional Libraries:
      Screenshot from 2025-05-09 21-35-16.png

      1 Reply Last reply
      0

      • Login

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