vcpkg install
时间: 2023-10-20 20:32:10 浏览: 42
To install vcpkg, you can follow these steps:
1. Clone the vcpkg repository from GitHub:
```
git clone https://github.com/microsoft/vcpkg.git
```
2. Change your working directory to the vcpkg folder:
```
cd vcpkg
```
3. Bootstrap vcpkg by running the bootstrap script appropriate for your platform:
- On Windows:
```
bootstrap-vcpkg.bat
```
- On macOS/Linux:
```
./bootstrap-vcpkg.sh
```
4. Once the bootstrap process is complete, you can use vcpkg to install packages. For example, to install the `openssl` package, run the following command:
```
vcpkg install openssl
```
You can replace `openssl` with any other package name you want to install.
5. After installation, you can integrate vcpkg with your project by using the `vcpkg integrate install` command. This will make the installed packages available for use in your project.
Remember to select the appropriate triplet (`x86-windows`, `x64-windows`, `x64-linux`, etc.) based on your target platform when installing packages with vcpkg.