I try to compile the Wireshark source code in my Windows 10 PC, with 1. Visual Studio community 2015 2. QT 5.6.3 3. Cygwin 4. Python 5. Cmake (based on https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html#ChSetupPrepareCommandCom)
I setup the environment as 2.2.9 When I try to compile it with "cmake -DENABLE_CHM_GUIDES=on -G "Visual Studio 14 2015 Win64" ..\wireshark" It is failed like that:
cmake -DENABLE_CHM_GUIDES=on -G "Visual Studio 14 2015 Win64" ..\wireshark -- Selecting Windows SDK version to target Windows 10.0.15063. CMake Error at CMakeLists.txt:22 (project): Failed to run MSBuild command:
C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 12/5/2017 4:09:51 PM.
Project "C:\Users\Me\DDisk\FWork\WireShark\wsbuild64\CMakeFiles\3.10.0\VCTargetsPath.vcxproj" on node 1 (default targets).
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\Me\DDisk\FWork\WireShark\wsbuild64\CMakeFiles\3.10.0\VCTargetsPath.vcxproj]
Done Building Project "C:\Users\Me\DDisk\FWork\WireShark\wsbuild64\CMakeFiles\3.10.0\VCTargetsPath.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Users\Me\DDisk\FWork\WireShark\wsbuild64\CMakeFiles\3.10.0\VCTargetsPath.vcxproj" (default target) (1) ->
(Desktop_PlatformPrepareForBuild target) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\Me\DDisk\FWork\WireShark\wsbuild64\CMakeFiles\3.10.0\VCTargetsPath.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.08
Exit code: 1
-- Configuring incomplete, errors occurred! See also "C:/Users/Me/DDisk/FWork/WireShark/wsbuild64/CMakeFiles/CMakeOutput.log".