【问题标题】:Qt Cmake error compilation "GuiSupportQt not found"Qt Cmake错误编译“未找到GuiSupportQt”
【发布时间】:2019-06-21 20:02:10
【问题描述】:

我是 Qt 新手,我已经遇到了问题,所以我开始为我的 VTK 项目创建一个简单的 UI,首先,我测试了一个由 Qt 在 Qt 5.5.0 中设计并在 Cmake 中编译的示例项目 UI 3.10 和 VS2013 用 C++ 编程,我在“配置完成”之前用 Cmake 编译后有一行说“找不到 GuiSupportQt”。我忽略它并生成解决方案然后我去VS2013编译Cmake提供的解决方案,我在VS2013中打开解决方案后没有找到我的项目,我只找到了名为ALL_BUILD和ZERO_CHECK的常见2个项目。

有关更多信息,我在一个非 Gui 项目(3d vtk 可视化与 vtk 没有 Qt 渲染)之前编译,这是我自己的家庭作业项目,我得到了成功的结果,这意味着我认为问题完全出现当我编译一个使用 Qt 的项目时,考虑到我的 Qt-VTK 是使用 Cmake 编译并使用 VS2013 构建的,没有任何错误。

这是我用来测试的 Qt 项目示例的代码: https://vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUISingleInheritance

这是我尝试用 Cmake 编译时得到的结果:

The C compiler identification is MSVC 18.0.21005.1 The CXX compiler identification is MSVC 18.0.21005.1 Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done VTK_VERSION: 7.1.1 GuiSupportQt not found. Configuring done Generating done

【问题讨论】:

    标签: c++ visual-studio qt user-interface cmake


    【解决方案1】:

    看了一会儿后,我发现了另一个避免问题的棘手解决方案,因为我的 Vtk 可视化部分工作正常,而且我在 Windows 上工作,所以我只是使用 Qt gui 在 cmd 中通过命令发送参数,然后 Vtk 项目编译的 exe 文件将在 argv[] 数组中获取执行参数(iso-value,数据文件夹名称..ect),然后在新窗口中启动它,所以我不必用 Cmake 编译 Qt 项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-28
      • 2015-05-31
      • 1970-01-01
      • 2013-07-17
      • 1970-01-01
      • 2010-10-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多