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. Fresh windows, cant link QT...
Forum Updated to NodeBB v4.3 + New Features

Fresh windows, cant link QT...

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
clion-idevisual studioqtcreatorlinking
1 Posts 1 Posters 610 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.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    Hey

    Ohh joy :D, So here is my error >

      Could not find a configuration file for package "Qt6" that is compatible
      with requested version "".
    
      The following configuration files were considered but not accepted:
    
        C:/Qt/6.2.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.2.0 (64bit)
    

    And here is cmake :

     set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QT_PATH})
            set(QT_VERSION 6)
            set(REQUIRED_LIBS Core Widgets Gui Network OpenGL Concurrent OpenGLWidgets)
            set(REQUIRED_LIBS_QUALIFIED_QT Qt6::Core Qt6::Widgets Qt6::Gui Qt6::Network Qt6::OpenGL Qt6::Concurrent Qt6::OpenGLWidgets)
            set(QT_PATHLib ${REQUIRED_LIBS_QUALIFIED_QT})
    
            message(${sp} "            QT : " ${QT_PATH})
            message(${sp} "FindPackage QT : " "Qt${QT_VERSION}" " COMPONENTS : " "${REQUIRED_LIBS} " "REQUIRED")
            message(\n\n ${sp} "QT Files\n")
    
            find_package(Qt${QT_VERSION} COMPONENTS ${REQUIRED_LIBS} REQUIRED)
    

    QtCreator compiles stuff fine.
    Visual Studio compiles too
    Clion has mental breakdown

    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