Hi. I'm not sure if this is the right place for this--please move it isn't.
As the title says, I have an error about Visual Studio 2019 Build Tools not being found. I installed them using Chocolatey, and then added the components I wanted using the Visual Studio Installer that came with Visual Studio 2019, so I do have them.
What I'm trying to do is generate solution and project files for Emscripten using CMake (I'll send an email to the CMake users mailing list after this as well; I just wanted to post this here as well since there might something wrong with the Build Tools or
I just don't know how to make the .vcxproj file find the Build Tools (the second one is definitely true though)).
This is the message I have in the output window in the IDE:
"C:\emscripten\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj : warning : The build tools for Visual Studio 2019 (v142) cannot be found. Install Visual Studio 2019 (v142) to build using the Visual Studio 2019 (v142) build tools.
C:\emscripten\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj : warning : Platform '[Win64, 0]' referenced in the project file 'VCTargetsPath' cannot be found.
error : Designtime build failed for project 'C:\emscripten\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj' configuration 'Debug|Win64'. IntelliSense might be unavailable.
Set environment variable TRACEDESIGNTIME = true and restart Visual Studio to investigate."
Any help would be appreciated. Thanks in advance.
Edit: Actually, instead of the CMake mailing list, I think I should open an issue at the Emscripten GitHub repo about it. I'll ask at the CMake mailing list if I need to do after that.
Edit: Before I forget, here's the output from when I ran CMake at the command line to try to generate the project files:
"
CMake Error at CMakeLists.txt:3 (project):
Failed to run MSBuild command:
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) Build Engine version 16.0.461+g6ff56ef63c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 4/27/2019 3:11:32 AM.
Project "C:\emscripten\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" on node 1 (default targets).
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(775,5): error : The OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure
that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='Win64'. You may be seeing this message because you are trying to build a project without a solution file, and have
specified a non-default Configuration or Platform that doesn't exist for this project. [C:\emscripten\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj]
Done Building Project "C:\emscripten\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\emscripten\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" (default target) (1) ->
(_CheckForInvalidConfigurationAndPlatform target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(775,5): error : The OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check
to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='Win64'. You may be seeing this message because you are trying to build a project without a solution file,
and have specified a non-default Configuration or Platform that doesn't exist for this project. [C:\emscripten\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:02.46
Exit code: 1
-- Configuring incomplete, errors occurred!
See also "C:/emscripten/build/CMakeFiles/CMakeOutput.log"."
So there actually is something there about MSBuild.