在 Visual Studio 2017 中构建项目时出错

马克洛德96

对于我的工作,我想为开源项目“ITK-Snap”实现一个附加组件。使用官方指南,我用 CMake 构建了 ITK、VTK,并安装了它们以及 Qt5.6。然后使用 CMake 构建 ITK-Snap 并尝试使用 Visual Studio 2017 构建项目将导致大约 150 个错误,其中大多数包含在 ITK-Snap 中使用的名为. 我将在屏幕截图中包含所有不同的错误代码 + 消息,但请记住,许多错误会多次发生。ITK-VTK CMake在此处输入图片说明greedy

错误

也许我在 CMake 设置中有一些错误?谢谢你的帮助。

耶南

All 3 of those projects have a directory called CMake in their source code. Deciding to make it also the build directory is a poor choice at best. Two good choices would be C:/FWF/ITK/build and C:/FWF/ITK-build. The second choice is even better because it allows searching only the source directory, and excluding the bigger build directory. Same logic holds for VTK and ITK-Snap.

Your errors are coming from ITK-Snap's git sub-module called greedy. The most likely reason is that version of greedy is mismatched to the version of ITK-Snap. Perhaps the author forgot to update the version of greedy in main repository? Try a few different versions of greedy including the latest stable version of everything. If that does not help I suggest to ask on ITK-Snap's mailing list.

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Visual Studio 2017中构建TclTk时出错

Visual Studio 2017:Nuget 找不到包,在构建项目时出错

Visual Studio 2017:在MinimumRecommendedRules.ruleset文件中编译项目时出错

在Visual Studio 2017中运行Angular 5 SPA时出错

Visual Studio 2017 中的构建错误

Visual Studio 2017中的React项目

无法在Visual Studio 2017中打开项目

Visual Studio 2017社区版本构建项目无响应

如何防止Visual Studio 2017构建JavaScript?

为 Visual Studio 2017 构建 boost 1.64

HoloLens无法构建Visual Studio 2017

使用Visual Studio 2017社区创建新的SSIS项目时出错

Visual Studio 2017 Blazor项目模板丢失

Visual Studio 2017无法加载项目

Visual Studio 2017加载项目失败

Visual Studio 2017社区项目模板

Visual Studio 2017 Django 项目问题

Visual Studio (2017) - Git 与常见项目

安装 Oracle Developer Tools for Visual Studio 2017 时出错

使用 Visual Studio 2017 时出错:fscanf_s

尝试修复时Visual Studio 2017错误

添加在Visual Studio 2017 RC中构建.NET Core项目后运行的msbuild任务

在 Visual Studio 2017 中通过 postbuild 事件构建 .net 核心项目

如何从Visual Studio 2017(基于目录的项目)中的任意构建任务运行bash?

从命令行在2017 Visual Studio中构建项目?

如何在Visual Studio 2017/2019中构建x64组装项目

Visual Studio 2017 中的 CMake 项目在首次构建后未重建

使用Visual Studio 2017 FTP发布项目时显示错误

Visual Studio 2017中的Nuget包错误