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
QtWS25 Last Chance

Cannot use Core5Compat

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 1.5k 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 22 Oct 2023, 19:43 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
    
    J 1 Reply Last reply 22 Oct 2023, 20:02
    0
    • F fear2137
      22 Oct 2023, 19:43

      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
      
      J Offline
      J Offline
      JoeCFD
      wrote on 22 Oct 2023, 20:02 last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • H Offline
        H Offline
        hskoglund
        wrote on 22 Oct 2023, 20:12 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
        • T Offline
          T Offline
          TheGabmeister
          wrote on 15 Jul 2024, 06:58 last edited by
          #4

          This worked for me! Thank you.

          1 Reply Last reply
          0
          • T TheGabmeister referenced this topic on 15 Jul 2024, 07:22

          • Login

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