Open miknai opened 1 year ago
Did you install toolchain with Visual Studio installer? We expect it to add these registry keys.
@KapJI Yes, the toolchain was installed via VS installer before I got the error.
Expected file path from
get_ucrt_dir
: C:\Program Files\Windows Kits\10 The actual file path for the Windows Kits: C:\Program Files (x86)\Windows Kits\10
Wondering if it's the 64 bit vs 32 bit registry? Is it different under the WOW6432Node?
TL;DR The file path from
get_ucrt_dir
didn't match the file path from the used registry value in my PC (Windows OS).I was stepping through the Getting Started page as a new Buck2 user. Even though followed every step, I encountered the error saying
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Program Files\\Windows Kits\\10\\Lib'
while doingbuck2 build //:main
. I took a look atvswhere.py
code below and found out that the file path thatget_ucrt_dir
function finds withKitsRoot10
registry key was different from the actual file path that has the library folder it looks for in my PC.I updated the registry value on my PC, so now the buck2 build works fine. Maybe, a warning should be added in the Getting Started instruction in case other folks get into a similar situation.