From f4b7ec9a8dafddff7db47cdeba1c20e5eea893c2 Mon Sep 17 00:00:00 2001 From: Changhua Date: Sun, 3 Nov 2024 11:40:40 +0800 Subject: [PATCH] Update vcpkg instruction --- README.MD | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/README.MD b/README.MD index 001fbe3..ac0851e 100644 --- a/README.MD +++ b/README.MD @@ -120,20 +120,16 @@ git clone https://github.com/microsoft/vcpkg ``` * 添加全局配置: -环境变量增加 `vcpkg` 所在路径(本项目为:`C:\Tools\vcpkg`)。 +环境变量增加 `vcpkg` 所在路径(本文为:`C:\Tools\vcpkg`): +```sh +setx VCPKG_ROOT "C:/Tools/vcpkg" /M +``` #### 安装相关组件 -```sh -vcpkg install protobuf[zlib]:x64-windows-static -vcpkg install spdlog:x64-windows-static -vcpkg install nng:x64-windows-static -vcpkg install magic-enum:x64-windows-static -vcpkg install minhook:x64-windows-static -vcpkg integrate install -``` +编译时会自动安装。但如果需要使用 `protoc.exe`,则需要配置一下 `protoc.exe` 环境变量:`\x64-windows-static\x64-windows-static\tools\protobuf`。 -安装完毕后,需要配置 protoc 的环境变量,并确保在命令行下可用,protoc 的路径在 `\installed\x86-windows-static\tools\protobuf` +(本文为:`C:\Projs\WeChatFerry\WeChatFerry\vcpkg_installed\x64-windows-static\x64-windows-static\tools\protobuf`) #### 安装 VS2019