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. Cannot use Core5Compat
Qt 6.11 is out! See what's new in the release blog

Cannot use Core5Compat

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 3.0k 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.
  • F Offline
    F Offline
    fear2137
    wrote on last edited by
    #1

    Whenever I add Core5Compat to my find_package in cmake I get an error.
    I tried:

    find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick Core5Compat)
    

    and

    find_package(Qt6 REQUIRED COMPONENTS Core5Compat Gui Qml Quick)
    

    but both result in

    Found package configuration file QtPath/6.6.0/msvc2019_64/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 "QtPath/6.6.0/msvc2019_64/lib/cmake/Qt6Core5Compat/Qt6Core5CompatConfig.cmake" does NOT exist
    
    JoeCFDJ 1 Reply Last reply
    0
    • F fear2137

      Whenever I add Core5Compat to my find_package in cmake I get an error.
      I tried:

      find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick Core5Compat)
      

      and

      find_package(Qt6 REQUIRED COMPONENTS Core5Compat Gui Qml Quick)
      

      but both result in

      Found package configuration file QtPath/6.6.0/msvc2019_64/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 "QtPath/6.6.0/msvc2019_64/lib/cmake/Qt6Core5Compat/Qt6Core5CompatConfig.cmake" does NOT exist
      
      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #3

        Hi, maybe you forgot to download "Qt 5 Compatibility Module"
        Screenshot 2023-10-22 at 22.10.23.png

        1 Reply Last reply
        2
        • TheGabmeisterT Offline
          TheGabmeisterT Offline
          TheGabmeister
          wrote on last edited by
          #4

          This worked for me! Thank you.

          1 Reply Last reply
          0
          • TheGabmeisterT TheGabmeister referenced this topic on

          • Login

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