Coder Social home page Coder Social logo

Failed to execute cmake about qxmpp HOT 5 OPEN

H-hzh avatar H-hzh commented on June 2, 2024
Failed to execute cmake

from qxmpp.

Comments (5)

lnjX avatar lnjX commented on June 2, 2024

Not sure whats the problem here.

Does it make any difference if you try to replace the line with:

find_package(Qt 6 REQUIRED COMPONENTS Core Network Xml)

from qxmpp.

H-hzh avatar H-hzh commented on June 2, 2024

After the change is

CMake Warning (dev) at CMakeLists.txt:23 (find_package):
  Policy CMP0084 is not set: The FindQt module does not exist for
  find_package().  Run "cmake --help-policy CMP0084" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindQt.cmake:87 (message):
  FindQt was called with invalid version '6'.  Only Qt major versions 3 or 4
  are supported.  If you do not need to support both Qt3 and Qt4 in your
  source consider calling find_package(Qt3) or find_package(Qt4) instead of
  find_package(Qt) instead.
Call Stack (most recent call first):
  CMakeLists.txt:23 (find_package)


-- Configuring incomplete, errors occurred!

from qxmpp.

lnjX avatar lnjX commented on June 2, 2024

Sorry! My mistake, I actually wanted to write:

find_package(Qt6 6.0 REQUIRED COMPONENTS Core Network Xml)

from qxmpp.

H-hzh avatar H-hzh commented on June 2, 2024

Sorry, it is still the same error, is it that I did not configure this path properly
D:/qt6.0/6.2.4/mingw_64/lib/cmake/Qt6/Qt6Config.cmake
How to configure this, please

from qxmpp.

lnjX avatar lnjX commented on June 2, 2024

You can set the path using cmake with -DQt6_DIR=D:/qt6.0/6.2.4/mingw_64/lib/cmake/Qt6/, but it seems like cmake has already found that directory, I'm not sure what's the error here.

from qxmpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.