* [uriparser] update to 0.9.6 (#22398) * [sobjectizer] Update to v.5.7.3 (#22399) * sobjectizer updated to v5.7.3. * so5extra updated to v1.5.0. * so5extra-1.5.0 added to baseline. * Fixes for old cmake commands. * Update baseline for sobjectizer/so5extra. * modernize cmake functions * update version * modernize cmake functions * update version * udpate version Co-authored-by: Jonliu1993 <13720414433@163.com> * [boost] update to 1.78.0 (#21928) * [scripts] update scripts * [boost-*] generate ports * update versions * [scripts] update boost version in boost-modular-headers.cmake * [scripts] add post source stubs for boost-json and boost-nowide ports and re-generate Boost ports * update versions * [boost-asio] make OpenSSL optional #20718 * update versions * [boost] [boost-mpi] [boost-python] disable python for iOS and Android, fixes #21474 * update versions * [boost-fiber] add NUMA support, fixes #16507 * update version * [boost-build] apply patch https://github.com/bfgroup/b2/pull/113 for fix build boost-fiber and boost-stacktrace * update version * [boost-atomic] fix compilation for uwp * update version * ignore mapnik's fail on arm64-windows * [boost-python] support ARM on Windows * update versions * Boost features testing within CI * [boost-modular-build-helper] fix boost_python file name in Jamroot.jam * [boost-mpi] fix build with python2 or python3 * update versions * [boost-fiber] fix build with numa=on * update version * [boost-multiprecision] fix build with MSVC on ARM * update version * [boost-mpi] try to fix build on linux and osx * update versions * exclude static * guarantee the same result across platforms * minor changes to boost-modular-build-helper's CMake * correct versions * [boost-modular-build-helper] install Python extensions on Windows * [boost-mpi] add patch to fix build Python extension on Windows * update versions * [boost-mpi] remove python2 by request @BillyONeal @strega-nil-ms * update version * update versions Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com> * [proj4]: Make the tiff specific features configurable and don't requi… (#22402) * [proj4]: Make the tiff specific features configurable and don't require the lossy jpeg compression that isn't used by the proj Data and/or CDN * [proj4]: Add version * [cppgraphqlgen] Update from v4.0.0 to v4.1.0 (#22411) * Bump version from 4.0.0 to 4.1.0 * vcpkg x-add-version cppgraphqlgen * [mman] only windows (#22453) * [vlpp] fix mac build (#22452) * [s2n] disable -Werror for gcc 11 build (#22446) s2n fails to build with gcc 11 (see https://github.com/aws/s2n-tls/issues/2989) due to problematic type declarations which generate compiler warnings, coupled with the fact that s2n builds with -Werror by default. The underlying bug is not yet fixed upstream. Building with -Werror is not helpful for an end user trying to use s2n from vcpkg, since a build failure like this is not actionable. This change therefore uses the UNSAFE_TREAT_AS_ERRORS=OFF option to disable -Werror. * [sdl2-image] Support x64-uwp (#22437) * fixed 22434 * Clean baseline * update version * version * add supports field since the upstream doesn't support uwp * improve code * version * version Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> * [openblas] Upgrade to latest version 0.03.19 (#22435) * [#22423]: Upgrade Openblas to latest version 0.03.19 * Clean-up ports/openblas. Removing patch no longer needed * Formatting ports/openblas/vcpkg.json * vcpkg x-add-version openblas * [simbody] no absolute paths (#22420) * [macos ci] update to 2022-01-03 (#22314) * [macos ci] update to 2022-01-03 * update the instructions * forgot to update azure-pipelines-osx.yml * install parallels in Install-Prerequisites.ps1 * oops * fix ace, libsoundio, and libpqxx * tensorflow doesn't yet support macOS 12 * [drogon] Fix libmariadb import/export and usage (#22426) * Add canonical usage * Use unofficial-libmariadb * Update versions * [getdns] Disable install COPYING in cmakelist (#22475) Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com> * [pybind11] Update to 2.9.0 (#22460) Co-authored-by: Heiko Thiel <heiko.thiel@hpi.de> * [wintoast] only windows (#22441) * [chakracore] Add flag to use all available CPUs (#22439) * Update portfile.cmake * Update vcpkg.json * Update baseline.json * Update chakracore.json * Update portfile.cmake * Update chakracore.json * Update portfile.cmake * Update portfile.cmake * Update chakracore.json * Update portfile.cmake * Update chakracore.json * Update ports/chakracore/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update chakracore.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * [luasocket] only work on windows (#22432) * [vcpkg_execute_build_process] Catch ld signal 9 (#22417) * [vcpkg_execute_build_process] Catch ld signal 9 * Update message output * [realsense2] Update to 2.50.0 (#22416) * Update realsense2 * Update versions * strega-nil CRs Co-authored-by: nicole mazzuca <mazzucan@outlook.com> * [pdal] Revise and update (#21275) * Modernize portfile, use vcpkg_from_github * Revise cleanup and tool installation * Fix static linkage with gdal * Fix static linkage with PostgreSQL * Fix compiler options * Fix APPLE linker flags * Don't use /usr/local/include * Remove pdal failure from CI baseline * Remove outdated FindICONV.cmake * Simplify geos package lookup * Separate boost patch from other dependencies * Simplify boost patching * Update to 2.3.0 * PDAL supports only dynamic linkage * Normalize find_library * Dependencies, features and plugins * Update pdalboost fixup * Fixup pkgconfig "Requires" in pc file is incomplete, and not needed for dynamic linkage in vcpkg. * Override absolute plugin path * Don't set RPATH * Add usage * [pdal-c] Update portfile * [pdal-c] Don't enforce pdal features * [pdal-c] Update to v2.1.0 * Update versions * Convert tabs * Update versions * Patch NOMINMAX definition * Update versions * Use project include instead of patch * Update versions * Update 'supports' field * Update versions * [vcpkg] z_vcpkg_get_cmake_vars(): Use build-type-specific cache variable if VCPKG_BUILD_TYPE is defined (#22461) * z_vcpkg_get_cmake_vars(): Use build-type-specific cache variable if VCPKG_BUILD_TYPE is defined Some ports (e.g. gettext) execute debug and release builds manually (with different options). If a globally cached copy of cmake vars file is used, the second build type has no cmake vars defined (e.g. CFLAGS is empty) because generated and globally cached cmake vars file includes only cmake vars for the first build type * Apply suggestions from code review Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * [azure-identity-cpp] Update to 1.1.1 (#22493) ## 1.1.1 (2022-01-11) ### Bugs Fixed - [2741](https://github.com/Azure/azure-sdk-for-cpp/issues/2741) Fixed linking problem when Azure SDK is built as DLL. * [opencolorio/lcms] Fix dependency (#21960) * [NCCL] Fix usage, add wrapper and install Find module file (#22031) * fix-find_ncclConfig.cmake * update version * change port-version * update version * update version * update version * update port version * update version Co-authored-by: Frank-Xie <Frank-Xie@Email.com> * [libuuid] disallow on osx (#22306) The `uuid/uuid.h` header conflicts with system libraries on osx; some system headers include `<uuid/uuid.h>`, intending to get the macOS system headers. * [protobuf] fix protobuf-3.18 mingw build failure (#22369) * fix protobuf-3.18 mingw build * fix protobuf-3.18 mingw build * [boost-modular-headers] download the license file only once (#22462) * [boost-modular-headers] download license file only once for every header-only library * update version * [wxwidgets] Fix debug-/release-only build (#22464) Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com> * [buck-yeh-bux] Fix error C7595 (#22471) * [buck-yeh-bux] Fix error C7595 * update version Co-authored-by: Lily Wang <v-lilywang@microsoft.com> * [Starlink-ast] update to 9.2.7 (#22382) * updated to v9.2.6 * git hash update * update to AST 9.2.7 * hash update * Update versions/s-/starlink-ast.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * starlink-ast doesn't use semver Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com> * [fontconfig] don't build font cache in case of crosscompile (#22483) * [netcdf-c] fix installation on windows when hdf5[parallel] is installed (#22488) fixes #21646 * [gettext] Fix uwp "tools" build (#22489) * [many ports] Update HTTP to HTTPS links where it can be done safely. (#20464) * Update HTTP to HTTPS links where it can be done safely. This means that the HTTP-based link gave a 200 response with identical content to the HTTPS version of the link. For links containing variables, we checked the interpolated (real) link. * Bump relevant vcpkg.json versions. * Use version-date for cello. * update version Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: Jonliu1993 <13720414433@163.com> * [vtk] no absolute paths (#22330) * [CppXaml] Add new port (#22414) * Add CppXaml package * format * version * 0.0.16 * update version * Update ports/cppxaml/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * update version * add double quotes * update version Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Jonliu1993 <13720414433@163.com> * [antlr4] update to 4.9.3 (#22438) * Fixing Tracy Port (#22510) * Adding tracy port * Formatting tracy port * Tidying up the port * Formatting again * Making sure git-tree is correct * Adding correct vcpkg dependencies * Newline at file end again * Update version database * Making sure to mark tracy as not supporting x86 at all * Updating version again * Responding to feedback and double checking which builds will work * Updating versions * Tidying up some loose ends * Updating port version again * Removing port-version 1 * Removing tracy from ci baseline * Removing unnecessary include copy * Updating version * Resolving feedback * Updating version and formatting * Version for the version god * tweaking tracy supports * Formatting and version * Version * Adding pthreads dependency to tracy for non-windows platforms * Version * Fixing tracy port * Fixing version * TRACY_IMPORTS should be an INTERFACE define Co-authored-by: nicole mazzuca <mazzucan@outlook.com> * [openxr-loader] Update to 1.0.22 (#22512) * [openxr-loader] Update to 1.0.22 * [openxr-loader] Update version files Co-authored-by: Rémy Tassoux <rt2@rasterizedworld.com> * [libmicrohttpd] update to v0.9.75 (#22514) * update libmicrohttpd to v0.9.75 * delete useless patch file Co-authored-by: Mengna-Li <you@example.com> * [speex] fix build on osx by disableing example binaries (#22458) * [speex] disable building of example programs to avoid libogg dependency * [speex] don't use deprecated vcpkg functions * [vcpkg_find_fortran] Update the mingw-w64-i686-mpc* (#22519) * [vcpkg_find_fortran] Update the mingw-w64-i686-mpc* * Update the version for x64 * [icu] Fix pc files (#22388) * [icu] Fix pc files * Patch the issue in configure.ac * Update VMs for Patch Tuesday and fix pwsh CVE. (#22494) * [glslang] Restore version removed in #15719 (#22538) * [crow] update to 0.3.4 (v0.3+4) (#22500) Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com> * [wxWidgets] Fix issue introduced in |
||
|---|---|---|
| .github | ||
| docs | ||
| ports | ||
| scripts | ||
| toolsrc | ||
| triplets | ||
| versions | ||
| .gitattributes | ||
| .gitignore | ||
| .vcpkg-root | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| LICENSE.txt | ||
| NOTICE.txt | ||
| README.md | ||
| README_es.md | ||
| README_fr.md | ||
| README_ko_KR.md | ||
| README_zh_CN.md | ||
| bootstrap-vcpkg.bat | ||
| bootstrap-vcpkg.sh | ||
| shell.nix | ||
README.md
Vcpkg: Overview
Vcpkg helps you manage C and C++ libraries on Windows, Linux and MacOS. This tool and ecosystem are constantly evolving, and we always appreciate contributions!
If you've never used vcpkg before, or if you're trying to figure out how to use vcpkg, check out our Getting Started section for how to start using vcpkg.
For short description of available commands, once you've installed vcpkg,
you can run vcpkg help, or vcpkg help [command] for command-specific help.
- Github: ports at https://github.com/microsoft/vcpkg, program at https://github.com/microsoft/vcpkg-tool
- Slack: https://cppalliance.org/slack/, the #vcpkg channel
- Discord: #include <C++>, the #🌏vcpkg channel
- Docs: Documentation
Table of Contents
- Vcpkg: Overview
- Table of Contents
- Getting Started
- Tab-Completion/Auto-Completion
- Examples
- Contributing
- License
- Security
- Telemetry
Getting Started
First, follow the quick start guide for either Windows, or macOS and Linux, depending on what you're using.
For more information, see Installing and Using Packages. If a library you need is not present in the vcpkg catalog, you can open an issue on the GitHub repo where the vcpkg team and community can see it, and potentially add the port to vcpkg.
After you've gotten vcpkg installed and working, you may wish to add tab completion to your shell.
Finally, if you're interested in the future of vcpkg, check out the manifest guide! This is an experimental feature and will likely have bugs, so try it out and open all the issues!
Quick Start: Windows
Prerequisites:
- Windows 7 or newer
- Git
- Visual Studio 2015 Update 3 or greater with the English language pack
First, download and bootstrap vcpkg itself; it can be installed anywhere,
but generally we recommend using vcpkg as a submodule for CMake projects,
and installing it globally for Visual Studio projects.
We recommend somewhere like C:\src\vcpkg or C:\dev\vcpkg,
since otherwise you may run into path issues for some port build systems.
> git clone https://github.com/microsoft/vcpkg
> .\vcpkg\bootstrap-vcpkg.bat
To install the libraries for your project, run:
> .\vcpkg\vcpkg install [packages to install]
Note: This will install x86 libraries by default. To install x64, run:
> .\vcpkg\vcpkg install [package name]:x64-windows
Or
> .\vcpkg\vcpkg install [packages to install] --triplet=x64-windows
You can also search for the libraries you need with the search subcommand:
> .\vcpkg\vcpkg search [search term]
In order to use vcpkg with Visual Studio, run the following command (may require administrator elevation):
> .\vcpkg\vcpkg integrate install
After this, you can now create a New non-CMake Project (or open an existing one).
All installed libraries are immediately ready to be #include'd and used
in your project without additional configuration.
If you're using CMake with Visual Studio, continue here.
In order to use vcpkg with CMake outside of an IDE, you can use the toolchain file:
> cmake -B [build directory] -S . -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake
> cmake --build [build directory]
With CMake, you will still need to find_package and the like to use the libraries.
Check out the CMake section for more information,
including on using CMake with an IDE.
For any other tools, including Visual Studio Code, check out the integration guide.
Quick Start: Unix
Prerequisites for Linux:
Prerequisites for macOS:
First, download and bootstrap vcpkg itself; it can be installed anywhere, but generally we recommend using vcpkg as a submodule for CMake projects.
$ git clone https://github.com/microsoft/vcpkg
$ ./vcpkg/bootstrap-vcpkg.sh
To install the libraries for your project, run:
$ ./vcpkg/vcpkg install [packages to install]
You can also search for the libraries you need with the search subcommand:
$ ./vcpkg/vcpkg search [search term]
In order to use vcpkg with CMake, you can use the toolchain file:
$ cmake -B [build directory] -S . -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake
$ cmake --build [build directory]
With CMake, you will still need to find_package and the like to use the libraries.
Check out the CMake section
for more information on how best to use vcpkg with CMake,
and CMake Tools for VSCode.
For any other tools, check out the integration guide.
Installing Linux Developer Tools
Across the different distros of Linux, there are different packages you'll need to install:
- Debian, Ubuntu, popOS, and other Debian-based distributions:
$ sudo apt-get update
$ sudo apt-get install build-essential tar curl zip unzip
- CentOS
$ sudo yum install centos-release-scl
$ sudo yum install devtoolset-7
$ scl enable devtoolset-7 bash
For any other distributions, make sure you're installing g++ 6 or above. If you want to add instructions for your specific distro, please open a PR!
Installing macOS Developer Tools
On macOS, the only thing you should need to do is run the following in your terminal:
$ xcode-select --install
Then follow along with the prompts in the windows that comes up.
You'll then be able to bootstrap vcpkg along with the quick start guide
Using vcpkg with CMake
If you're using vcpkg with CMake, the following may help!
Visual Studio Code with CMake Tools
Adding the following to your workspace settings.json will make
CMake Tools automatically use vcpkg for libraries:
{
"cmake.configureSettings": {
"CMAKE_TOOLCHAIN_FILE": "[vcpkg root]/scripts/buildsystems/vcpkg.cmake"
}
}
Vcpkg with Visual Studio CMake Projects
Open the CMake Settings Editor, and under CMake toolchain file,
add the path to the vcpkg toolchain file:
[vcpkg root]/scripts/buildsystems/vcpkg.cmake
Vcpkg with CLion
Open the Toolchains settings
(File > Settings on Windows and Linux, CLion > Preferences on macOS),
and go to the CMake settings (Build, Execution, Deployment > CMake).
Finally, in CMake options, add the following line:
-DCMAKE_TOOLCHAIN_FILE=[vcpkg root]/scripts/buildsystems/vcpkg.cmake
Unfortunately, you'll have to add this to each profile.
Vcpkg as a Submodule
When using vcpkg as a submodule of your project,
you can add the following to your CMakeLists.txt before the first project() call,
instead of passing CMAKE_TOOLCHAIN_FILE to the cmake invocation.
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake
CACHE STRING "Vcpkg toolchain file")
This will still allow people to not use vcpkg,
by passing the CMAKE_TOOLCHAIN_FILE directly,
but it will make the configure-build step slightly easier.
Tab-Completion/Auto-Completion
vcpkg supports auto-completion of commands, package names,
and options in both powershell and bash.
To enable tab-completion in the shell of your choice, run:
> .\vcpkg integrate powershell
or
$ ./vcpkg integrate bash # or zsh
depending on the shell you use, then restart your console.
Examples
See the documentation for specific walkthroughs, including installing and using a package, adding a new package from a zipfile, and adding a new package from a GitHub repo.
Our docs are now also available online at our website https://vcpkg.io/. We really appreciate any and all feedback! You can submit an issue in https://github.com/vcpkg/vcpkg.github.io/issues.
See a 4 minute video demo.
Contributing
Vcpkg is an open source project, and is thus built with your contributions. Here are some ways you can contribute:
- Submit Issues in vcpkg or existing packages
- Submit Fixes and New Packages
Please refer to our Contributing Guide for more details.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or email opencode@microsoft.com with any additional questions or comments.
License
The code in this repository is licensed under the MIT License. The libraries
provided by ports are licensed under the terms of their original authors. Where available, vcpkg
places the associated license(s) in the location installed/<triplet>/share/<port>/copyright.
Security
Most ports in vcpkg build the libraries in question using the original build system preferred by the original developers of those libraries, and download source code and build tools from their official distribution locations. For use behind a firewall, the specific access needed will depend on which ports are being installed. If you must install in in an "air gapped" environment, consider installing once in a non-"air gapped" environment, populating an asset cache shared with the otherwise "air gapped" environment.
Telemetry
vcpkg collects usage data in order to help us improve your experience. The data collected by Microsoft is anonymous. You can opt-out of telemetry by
- running the bootstrap-vcpkg script with -disableMetrics
- passing --disable-metrics to vcpkg on the command line
- setting the VCPKG_DISABLE_METRICS environment variable
Read more about vcpkg telemetry at docs/about/privacy.md