Changes between Version 8 and Version 9 of CompilationGuide/WinRT


Ignore:
Timestamp:
May 5, 2015, 10:30:38 PM (4 years ago)
Author:
gillesk
Comment:

Setting the UCRTSdkVer automatically

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/WinRT

    v8 v9  
    2222Download and install [https://www.visualstudio.com/downloads/visual-studio-2015-ctp-vs Microsoft Visual Studio 2015] and [http://blogs.windows.com/buildingapps/2015/03/23/windows-10-developer-tooling-preview-now-available-to-windows-insiders/ Windows 10 SDK] on a Windows 10 machine.
    2323
    24 Once the setup are completed, run the `reg query` command below to retrieve the '''Windows 10 SDK version''' to be used later.
    25 
    26 {{{
    27 reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0" /v "ProductVersion"
    28 }}}
    29 
    30 In the example query result below, the installed Windows 10 SDK version is `10.0.10030`. This version is to be set as `UCRTSdkVer` environment variable when setting up FFmpeg build command prompt.
    31 
    32 {{{
    33 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0
    34     ProductVersion    REG_SZ    10.0.10030
    35 }}}
    36 
    3724=== Windows 8.1 Setup ===
    3825
     
    120107}}}
    121108
    122 Set the following environment variables in the launched command prompt above. Use the correct version of '''Windows 10 SDK version''' for `UCRTSdkVer` (see [#Windows10Setup Windows 10 Setup] on how to get the version)
    123 {{{
    124 SET UCRTSdkVer=10.0.10030.0
     109Set the following environment variables in the launched command prompt above.
     110We will need to find the right '''Windows 10 SDK version''' that is installed, which can be found under the regkey: "HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0"
     111{{{
     112for /F "tokens=3* delims= " %V in ('reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0" /v ProductVersion /reg:32') do set UCRTSdkVer=%V.0
    125113SET LIB=%VSINSTALLDIR%VC\lib\store;%VSINSTALLDIR%VC\atlmfc\lib;%UniversalCRTSdkDir%lib\winv10.0\ucrt\x86;;%UniversalCRTSdkDir%lib\%UCRTSdkVer%\um\x86;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\lib\um\x86;;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\Lib\um\x86
    126114SET LIBPATH=%VSINSTALLDIR%VC\atlmfc\lib;%VSINSTALLDIR%VC\lib;
     
    171159}}}
    172160
    173 Set the following environment variables in the launched command prompt above. Use the correct version of '''Windows 10 SDK version''' for `UCRTSdkVer` (see [#Windows10Setup Windows 10 Setup] on how to get the version)
    174 {{{
    175 SET UCRTSdkVer=10.0.10030.0
     161Set the following environment variables in the launched command prompt above.
     162We will need to find the right '''Windows 10 SDK version''' that is installed, which can be found under the regkey: "HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0"
     163{{{
     164for /F "tokens=3* delims= " %V in ('reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0" /v ProductVersion /reg:32') do set UCRTSdkVer=%V.0
    176165SET LIB=%VSINSTALLDIR%VC\lib\store\amd64;%VSINSTALLDIR%VC\atlmfc\lib\amd64;%UniversalCRTSdkDir%lib\winv10.0\ucrt\x64;;%UniversalCRTSdkDir%lib\%UCRTSdkVer%\um\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\lib\um\x64;;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\Lib\um\x64
    177166SET LIBPATH=%VSINSTALLDIR%VC\atlmfc\lib\amd64;%VSINSTALLDIR%VC\lib\amd64;
     
    222211}}}
    223212
    224 Set the following environment variables in the launched command prompt above. Use the correct version of '''Windows 10 SDK version''' for `UCRTSdkVer` (see [#Windows10Setup Windows 10 Setup] on how to get the version)
    225 {{{
    226 SET UCRTSdkVer=10.0.10030.0
     213Set the following environment variables in the launched command prompt above.
     214We will need to find the right '''Windows 10 SDK version''' that is installed, which can be found under the regkey: "HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0"
     215{{{
     216for /F "tokens=3* delims= " %V in ('reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0" /v ProductVersion /reg:32') do set UCRTSdkVer=%V.0
    227217SET LIB=%VSINSTALLDIR%VC\lib\store\ARM;%VSINSTALLDIR%VC\atlmfc\lib\ARM;%UniversalCRTSdkDir%lib\winv10.0\ucrt\arm;;%UniversalCRTSdkDir%lib\%UCRTSdkVer%\um\arm;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\lib\um\arm;;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\Lib\um\arm
    228218SET LIBPATH=%VSINSTALLDIR%VC\atlmfc\lib\ARM;%VSINSTALLDIR%VC\lib\ARM;