本文介绍了cmake Windows 10 SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图在带有Visual Studio编译器的Windows 10上使用cmake编译VTK ...但是,cmake说找不到在此计算机上安装的Windows 10 SDK的合适版本".好的.因此,我安装了Windows 10 SDK,但始终出现相同的错误.

tried to compile VTK using cmake on Windows 10 with Visual Studio compiler ... however, cmake says "Could not find an appropriate version of the Windows 10 SDK installed on this machine".Okay. So I Installed Windows 10 SDK but the same error keeps occuring.

有什么主意吗?我已经重新安装了cmake,但没有成功.

Any idea what could be wrong? I've already reinstalled cmake but no success.

谢谢,埃里克

推荐答案

我遇到了同样的问题,因为我刚安装的SDK的目标是10.0.10586.0

I've have the same issue and in my case it's because the SDK I just installed is targeting 10.0.10586.0

ls "C:\Program Files (x86)\Windows Kits\10\include\"


    Directory: C:\Program Files (x86)\Windows Kits\10\include


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        12/4/2015  12:27 AM                10.0.10586.0

但是cmake将我的系统检测为:

But my system is detected by cmake as:

如果将include \ 10.0.10586.0文件夹重命名为include \ 10.0.10240,将找到SDK.

If you rename the include\10.0.10586.0 folder to include\10.0.10240, the SDK will be found.

这篇关于cmake Windows 10 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 16:21