[MSVC] Updating from SDK 7.1 to WinKit 10.0.17xx

gvanem's Avatar

gvanem

31 Oct, 2018 06:41 PM

In my appveyor.yml for MSVC I have this line:

 - cmd: if "%BUILDER%"=="msvc" call "c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /%CPU%
But that SDK is way too old for what stuff I'm currently compiling (Windows Filtering Platform).
Using the above SDK together with <fwpmu.h> throw up a lot of errors not found in a WinKit SDK v10.x.
So how do I rewrite the above SetEnv.cmd line?

And, BTW I use a Nmake / GNU-make build method (no pesky MSbuild).

  1. 1 Posted by Ilya Finkelshte... on 01 Nov, 2018 08:07 PM

    Ilya Finkelshteyn's Avatar

    Please check Windows SDKs list installed on AppVeyor Windows images: https://www.appveyor.com/docs/windows-images-software/#windows-sdks

    You can get specific directories for SDKs by running the following command in PowerShell at any build stage:

    dir 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows' -Recurse
    
  2. 2 Posted by gvanem on 01 Nov, 2018 08:49 PM

    gvanem's Avatar

    Please check Windows SDKs list installed on AppVeyor Windows images: https://www.appveyor.com/docs/windows-images-software/#windows-sdks

    Thanks for replying, but I fail to understand how to enable one of those images. No examples AFAICS.

    But I fixed my problem in this way instead:

    - cmd: if "%BUILDER%"=="msvc" call "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %CPU%
    

    Works for CPU=x86. But I've not tested CPU=x64.

  3. 3 Posted by Ilya Finkelshte... on 01 Nov, 2018 09:45 PM

    Ilya Finkelshteyn's Avatar

    Default image is Visual Studio 2015. More information about images and how to enable specific one is here: https://www.appveyor.com/docs/build-environment/#build-worker-images

  4. Ilya Finkelshteyn closed this discussion on 02 Jan, 2019 09:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM