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 and Qt
Forum Updated to NodeBB v4.3 + New Features

Cmake and Qt

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

    Hello,

    After a lot of trying I can't use Qt via cmake.
    Here is the error message:

    CMake Warning at C:/Qt/6.0.3/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake:90 (find_package):
    1> [CMake] Found package configuration file:
    1> [CMake]
    1> [CMake] C:/Qt/6.0.3/msvc2019_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake
    1> [CMake]
    1> [CMake] but it set Qt6Widgets_FOUND to FALSE so package "Qt6Widgets" is considered
    1> [CMake] to be NOT FOUND. Reason given by package:
    1> [CMake]
    1> [CMake] The following imported targets are referenced, but are missing: Qt6::Core
    1> [CMake] Qt6::Gui Qt6::CorePrivate Qt6::GuiPrivate

    I tried via C: \ Qt \ 6.0.3 \ mingw81_64 but I still get the same error ...

    Thank you

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Seems like you are mixing compilers. What are you using to compile your program?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      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