racoon wrote:

> On 20.06.2016 22:10, Georg Baum wrote:
>>
>> Good, that brings us a step further. I assume you have the Windows
>> Platform SDK installed? If not, please install it from
>> https://developer.microsoft.com/en-us/windows/downloads/windows-8-1-sdk
>> and try again. If it is installed, it might be broken:
>> http://stackoverflow.com/questions/22188919/windows-sdk-registry-variable-not-found/25466317
>> contains some hints how to repair a broken SDK installation. It might
>> also be a cmake problem (although I doubt that), since a user had exactly
>> the same issue with a cmake project here:
>> http://stackoverflow.com/questions/36362469/cmake-does-not-find-windows-sdk-8-1
> 
> I could not find the SDK in installed programs. So I installed it. But
> it still does not work. Same error. And I still can't find the SDK under
> programs. Perhaps they are somewhere else to be found?

The standalone SDK should be installed below C:\Program Files\Microsoft 
SDKs\ or C:\Program Files (x86)\Windows Kits\. If there is nothing below one 
of these folders then it is probably not installed.

Unfortunately the SDK stuff is quite confusing. Sometimes the SDK is 
included with MSVC, sometimes you need a standalone version. After some 
googling it looks like MSVC 2015 comes with a newer SDK that should be used, 
but the installion is optional. Some more things you could try:

- Make sure the MSVC included SDK is installed, as described at 
http://stackoverflow.com/questions/31619296/cmake-does-not-find-visual-c-compiler.
 Then create the MSVC project files with cmake again.
- In contrast to my earlier advice, select MSVC 2010 in cmake as generator, 
and have MSVC convert the projects during loading (this would help in case 
there is a MSVC 2015 related bug in cmake).


Georg

Reply via email to