Cross-Platform Support
Vcpkg supports multiple platforms, including Windows, macOS, and Linux. This ensures developers can maintain consistency across different environments.
Wide Range of Packages
Vcpkg has a large collection of libraries and tools that can be easily integrated into projects, saving developers time in managing and building dependencies.
Ease of Use
The tool is designed to be straightforward, simplifying the process of installing and managing libraries with simple commands.
Integration with CMake
Vcpkg integrates well with CMake, one of the most popular build systems, which helps streamline the development process.
Continuous Updates
Being backed by Microsoft, Vcpkg receives regular updates and improvements, ensuring it stays current with the latest library versions.
Re: C/C++ development: anybody using conda/pixi for dependency management? Here's an example of compiling a C++ SDL program using pixi and the SDL dependency from conda-forge [1]. Seems viable as a replacement for things like vckpg [2] which only builds from source. I'm still researching this but it seems like rattler [3] is the tool to use to build/publish packages. The supported repos are: prefix.dev's own... - Source: Hacker News / 7 months ago
Plenty of raw information should be available here, the actual vcpkg repo: https://github.com/microsoft/vcpkg. Source: almost 2 years ago
Actually, there is: C++ Library Manager for Windows, Linux, and MacOS. Source: almost 2 years ago
The installation is described in the readme of vcpkg on github and is straightforward: clone the project, execute the installation script and you are ready to go! - Source: dev.to / about 2 years ago
You didn't ask about this, but I think its worth mentioning Conan and vcpkg. Of the two I have found vcpkg easier to work with, but both can be good solutions. Combining one of these package managers with CMake presets can make getting a project setup on a new machine almost trivial (great for CI or onboarding new devs). Source: almost 2 years ago
Over the past few weeks, I have been working on a new vcpkg online explorer: https://vcpkg.link. Source: about 2 years ago
If you don't mind installing packages from a CLI, vcpkg is a decent minimal package manager that can integrate with CMake and/or VS. It installs source/header files and static/dynamic link libraries for you and makes them accessible with a CMake toolchain file, which is specified in the configure step. For me it's usually:. Source: about 2 years ago
Well, there is Conan, vcpkg, but they don't have the maturity as yarn, npm, PyPI or maven have. - Source: dev.to / about 2 years ago
If you're serious about doing C/C++ development on Windows, you should use a full-fledged IDE like VS or CLion. C++ support in VSCode isn't nearly as feature-rich. Also, look up Vcpkg. It works nicely with CMake and fits most library management needs. Source: about 2 years ago
Since it is recommended to have vcpkg as a submodule (see https://github.com/microsoft/vcpkg), you should be able to use a relative path. This enable you to have different versions of vcpkg across different projects while keeping it sync with your repository. Source: about 2 years ago
I know this may sound stupid, but I have no real knowhow on these Github files. I've taken a look at the wiki on the Github page, but it only tells me how to install vcpkg. Source: over 2 years ago
OpenCV is available on vcpkg. That's how I'd acquire for it Windows these days. Conan probably has it too. Source: over 2 years ago
I used vcpkg to install raylib and linked it using CMake (especially vcpkg's own CMake files). Everything worked fine until I updated the packages:. Source: over 2 years ago
There's vcpkg the "tool" and vcpkg the "latest portfiles". Once upon a time those were developed in the same repository https://github.com/microsoft/vcpkg because we distributed the tool in source form. When we added binary releases people complained about the checkout time for the tool sources so we sucked that out into a separate repo https://github.com/microsoft/vcpkg-tool. Source: almost 3 years ago
Https://github.com/microsoft/vcpkg lets you automate the whole vcpkg setup/bootstrapping and package fetching/compiling as a CMake configuration-time task. And keep vcpkg and all packages local to your project. Using manifest mode you can as well check-in all your dependencies in version control (as mentioned by @Dragu) and get node/npm like dependency management with only one git submodule or copied .cmake file. Source: almost 3 years ago
If you're having trouble with that I'd rather recommend you try vcpkg. This section covers integrating vcpkg into VS Code after installation. The command you need is: Vcpkg install sfml:x64-windows-static It will automatically download, build, and link SFML statically to your project. You'd still need to define SFML_STATIC preprocessor macro tho. Source: almost 3 years ago
I do not agree with this statement. There are multiple package managers for C++. I like vcpkg, but there's also conan, spack, etc. Source: almost 3 years ago
For practice, I suggest learning how to use one of package managers that emerged lately (I prefer vcpkg, but YMMV) and build something small but real with existing libraries; some ideas:. Source: about 3 years ago
But, you can use GTK from Visual Studio. AFAIK, GTK 4 should be compatible with Visual Studio 2019. You can use vcpkg to install GTK and use it directly from Visual Studio in your C program. Source: over 3 years ago
In addition to what u/Boop_city said: - install vcpkg following their instructions - set the default triplet (set an env variable to x64-windows) - download opengl / glad / glfw. Might have to do them individually, also not down the usage instructions, after install they will tell you the cmake you need to include them in a project. If you forget you can call install on something you already have and it will... Source: over 3 years ago
In MSVC world things improved considerably since vcpkg inception. Source: over 3 years ago
Do you know an article comparing Vcpkg to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Vcpkg. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.