Ask Your Question

Revision history [back]

You appear to have an odd and unsupported build environment. From the first line in the error log:

Setting environment for using Microsoft Visual Studio 2010 x64 tools.

VS 2010 isn't supported for current master, you must use VS 2015 or later, ideally VS 2017 as it's currently used for Wireshark releases.

Then the subsequent output implies that you have asked CMake to generate a build file for VS 2019 (16.0):

Project file contains ToolsVersion="16.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.
    70>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets(507,5): error MSB8008:
        Specified platform toolset (v142) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\Development\wsbuild64\ZERO_CHECK.vcxproj]

In summary:

  1. Install VS 2017.
  2. Delete your build directory (wsbuild64) and recreate it again.
  3. Open a VS 2017 command prompt for x64 compilation.
  4. Set the required env vars.
  5. Run the CMake generation step specifying VS 2017 and x64 as the generation target.
  6. Run msbuild.

i.e. do exactly as it says in the Developers Guide. If you stray from the guide, you're likely to end up with issues as you've discovered.