Godot Version
4.4
Question
I am trying to build godot from source, I installed Visual Studio 2022. But scons can’t find it, I did add env parm in the PATH to cl.exe. But it still not working. I did it the same in my other computer and it worked, but in this one, it just not work.
Here is the log
scons: Reading SConscript files ...
Automatically detected platform: windows
scons: warning: No versions of the MSVC compiler were found.
Visual Studio C/C++ compilers may not be set correctly.
Requested tool(s) are: ['msvc']
File "E:\_GameEngine\Godot\SourceCode\godot\SConstruct", line 441, in <module>
scons: warning: No versions of the MSVC compiler were found.
Visual Studio C/C++ compilers may not be set correctly.
Requested tool(s) are: ['msvc', 'mslink']
File "E:\_GameEngine\Godot\SourceCode\godot\SConstruct", line 441, in <module>
scons: warning: No versions of the MSVC compiler were found.
Visual Studio C/C++ compilers may not be set correctly.
Requested tool(s) are: ['msvc', 'mslink', 'mslib']
File "E:\_GameEngine\Godot\SourceCode\godot\SConstruct", line 441, in <module>
Auto-detected 16 CPU cores available for build parallelism. Using 15 cores by default. You can override it with the `-j` or `num_jobs` arguments.
Building for platform "windows", architecture "x86_64", target "editor".
KeyError: 'VSWHERE':
File "E:\_GameEngine\Godot\SourceCode\godot\SConstruct", line 623:
cc_version = methods.get_compiler_version(env)
File "E:\_GameEngine\Godot\SourceCode\godot\methods.py", line 698:
env["VSWHERE"],
File "E:\_Programming\Python313\Lib\site-packages\SCons\Environment.py", line 603:
return self._dict[key]