Qt Cmake 错误编译"GuiSupportQt not found"
Qt Cmake error compilation "GuiSupportQt not found"
我是Qt的新手,我已经遇到了问题,所以我开始为我的VTK项目创建一个简单的UI,首先,我测试了Qt在Qt 5.5.0中设计的示例项目UI,并在Cmake 3.10和VS2013中编译,用C++编程,在"配置完成"之前用Cmake编译后我有一行说"GuiSupportQt未找到"。 我忽略了它并生成了解决方案,然后我转到VS2013编译Cmake提供的解决方案,在VS2013中打开解决方案后没有找到我的项目,我只找到了名为ALL_BUILD和ZERO_CHECK的2个常见项目。
有关更多信息,我已经在一个非 Gui 项目(使用 vtk 渲染而没有 Qt 的 3d vtk 可视化)之前进行了编译,这是我自己的家庭作业项目,我得到了一个成功的结果,这意味着在我看来,当我编译一个使用 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
看了一会儿后,我发现了另一个棘手的解决方案来逃避问题,因为我的 Vtk 可视化部分工作正常并且我在 Windows 上工作,所以我只是使用 Qt gui 通过 cmd 中的命令发送参数,然后 Vtk 项目编译的 exe 文件将在执行中获取参数(iso 值,数据文件夹名称......ect) 在 argv[] 数组中,然后在新窗口中启动它,所以我不必使用 Cmake 编译 Qt 项目。
- OpenCV Android C++ imwrite not found
- 解决"ld: library not found for -ltensorflow_framework.2.3.0"
- 加载与引用 .NET DLL 位于同一文件夹中的引用的 .NET DLL 时"Not found"异常
- 处理"no operator found"
- C++初学者:为什么我的编译器根据我的循环返回"name not found"?
- _BitScanForward64 can not be found
- 使用提升 asio 时出现"resolve: Host not found (authoritative)"异常
- 为什么 VScode 在 .h 文件中显示"'iostream' file not found"?
- 使用自定义 nodejs 插件时的"The specified module could not be found"
- Boost.Python 和导入 dll,"The specified module could not be found"
- 为什么我在" 'X' identifier not found' "上收到错误
- WinDBG适用于从Visual Studio 2015保存的转储,但不适用于任务管理器。显示异常代码"not found"
- "Entry Point Not Found" Azure 中的错误 LightGBM R 包
- TBB_tbb_LIBRARY_DEBUG-NOT FOUND
- 当索引为 1 时,_BitScanReverse返回 0,这意味着根据 MS "no set bits were found"
- 为什么即使我定义了它们"no matching overload found"也会出现错误
- Android Studio 3.1.2 - 无法运行C++子例程"No implementation found for Java.lang.String..."
- 在 Ubuntu 16.04 下运行协程示例会得到"'experimental/coroutine' file not found"
- 在 mongodb c++ 驱动程序中使用声明"not found"
- Qt Cmake 错误编译"GuiSupportQt not found"