Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

could not find any instance of Visual Studio

It used to work, but when I installed the Libs for Specter component, I got the following error.

C:\Development\wsbuild64>cmake -G "Visual Studio 16 2019" -A x64 C:\Development\wireshark

CMake Error at CMakeLists.txt:39 (project):

Generator Visual Studio 16 2019

could not find any instance of Visual Studio.

Even setting the path of the EXE to VS2019 in the Path environment variable was useless.

Moreover, menus such as "x64 Native Tools Command Prompt for VS 2019" under VisualStadio2019 in the startup menu have been deleted.

The details are as follows.

Previously the above command worked.

I got the below error message in CMakeError.log.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(486,5): error MSB8040: Spectre mitigation library is required for this project. For the toolsets and architectures used, install them from the Visual Studio Installer (individual components tab). Detailed information:https://aka.ms/Ofhn4c [C:\Development\wsbuild64\CMakeFiles\CMakeTmp\cmTC_85026.vcxproj]

I installed the Libs for Specter component

I want to resolve the instance not found error.