'cmake 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.
Any idea what could be wrong? I've already reinstalled cmake but no success.
Thanks, Eric
Solution 1:[1]
you need to install windows sdk unless it wont work. cmake require windows sdk inorder to run cmake compiler. to install windows sdk,
- go to the visual studio installer from the start menu.
- select "modify" enter image description here
- select "individual components"
- in the coming up menu find the windows SDK (latest version) enter image description here
- then select modify.
Solution 2:[2]
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
But my system is detected by cmake as:
The system is: Windows - 10.0.10240 - AMD64
If you rename the include\10.0.10586.0 folder to include\10.0.10240, the SDK will be found.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shehan Hasintha |
| Solution 2 |
