quick-lint / quick-lint-js

quick-lint-js finds bugs in JavaScript programs
https://quick-lint-js.com
GNU General Public License v3.0
1.55k stars 192 forks source link

Issue when trying to build from source #1215

Open laveenaBachani opened 7 months ago

laveenaBachani commented 7 months ago

I am following the steps here: https://quick-lint-js.com/contribute/build-from-source/windows/

I have Microsoft Visual Studio Enterprise 2022 (64-bit) Version 17.9.3

When I run the command listed in documentation, but with the Visual Studio in my system that is cmake -G "Visual Studio 17 2022" -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1

It gives me error:

image
CoderMuffin commented 7 months ago

@laveenaBachani Maybe try reverting the version string? (i.e. "Visual Studio 16 2019" instead of "Visual Studio 17 2022") If that doesn't work, could you maybe install VS2019?

strager commented 7 months ago

@laveenaBachani Are you running that cmake command from the "x64 Native Tools Command Prompt for VS 2022" command prompt? If not, that might be the issue.

(Sorry for the delayed response. I've been busy with work. 😬)