Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use vcpkg without Visual Studio?

Tags:

vcpkg

I just downloaded and configured vcpkg. But when I tried to install a package, I got this error message:

error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance

Does it mean it is necessary to install Visual Studio to make the vcpkg available?

Considering that all my work is doing on clion and vscode, if it's necessary, what's the minimum required components should I install?

Or maybe it's just my wrong somewhere?

like image 329
zclll Avatar asked Oct 28 '25 10:10

zclll


1 Answers

No, you do not need to install Visual Studio to use vcpkg. By default, vcpkg tries to build packages with the MSVC compiler if you are on Windows. You could install just the Visual Studio Build Tools, which would give you MSVC without installing the entire IDE, if you wish.

What compiler are you currently using?

If you happen to be using MinGW, you should tell vcpkg to use that. See: https://vcpkg.io/en/docs/users/mingw.html.

Disclaimer: I work on the vcpkg tool.

like image 153
CynicalProgrammer Avatar answered Oct 30 '25 15:10

CynicalProgrammer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!