发现不合适的Qt版本“5.12.4";使用 CMake 配置 Eigen 3.3.7 时来自 C:/Qt/5.12.4/msvc2015_64/bin/qmake.exe [英] Found unsuitable Qt version "5.12.4" from C:/Qt/5.12.4/msvc2015_64/bin/qmake.exe when configuring Eigen 3.3.7 using CMake

查看:118
本文介绍了发现不合适的Qt版本“5.12.4";使用 CMake 配置 Eigen 3.3.7 时来自 C:/Qt/5.12.4/msvc2015_64/bin/qmake.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境:

  • Windows 10 版本 1903,64 位
  • CMake 3.15.3
  • Qt 5.12.4
  • 本征 3.3.7
  • Visual Studio 2015 更新 3

问题:

当我在 Eigen 3.3.7 根文件夹中创建的 build 文件夹中运行 cmake -G"Visual Studio 14 2015 Win64" .. 时,我收到以下错误消息:

When I run cmake -G"Visual Studio 14 2015 Win64" .. in build folder created in Eigen 3.3.7 root folder, I got the following error message:

-- 从 C:/Qt/5.12.4/msvc2015_64/bin/qmake.exe 发现不合适的 Qt 版本5.12.4"

-- Found unsuitable Qt version "5.12.4" from C:/Qt/5.12.4/msvc2015_64/bin/qmake.exe

-- 未找到 Qt4,因此禁用 mandelbrot 和 opengl 演示

-- Qt4 not found, so disabling the mandelbrot and opengl demos

我已经用谷歌搜索了好几天,但这些文章要么是关于其他平台的,要么是不起作用的.例如,我已经仔细检查了 PATH 环境变量是否设置正确,以便 where qmake 返回正确的路径.那么,如何在使用 cmake(包括 mandelbrot 和 opengl 演示)配置 Eigen 3.3.7 时让 Eigen 3.3.7 愉快地与 Qt5 一起工作,或者 Eigen3 根本不能与 Qt5 一起工作,只能与 Qt4 一起工作?如果答案是后者,我会感到惊讶,因为 Qt5 已经存在近十年了.如果是这样,Eigen3 开发人员是否有计划在不久的将来支持 Qt5?谢谢.

I have googled for days but the articles are either about other platforms or do not work. For example, I have double checked that the PATH environment variable is properly set so that where qmake returns correct path. So, how to make Eigen 3.3.7 happily work with Qt5 when configuring it using cmake (including the mandelbrot and opengl demos), or Eigen3 does not work with Qt5 at all, only with Qt4? I would be surprised if the latter is the answer because Qt5 has been there for nearly a decade. If that is the case, is there any plan for Eigen3 developers to support Qt5 in near future? Thanks.

推荐答案

或许可以向下滚动到configure选项,选择qt版本,如下图:

Perhaps you can scroll down to the configure options and select qt version, as shown in the following figure:

这篇关于发现不合适的Qt版本“5.12.4";使用 CMake 配置 Eigen 3.3.7 时来自 C:/Qt/5.12.4/msvc2015_64/bin/qmake.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆