cpprestsdk-2.10.16源码编译

tech2022-10-01  56

1.下载cpprestsdk源码 手动下载https://github.com/microsoft/cpprestsdk/archive/master.zip git安装 git clone https://github.com/Microsoft/cpprestsdk.git

2.安装vcpkg A. 手动下载或git安装 git clone https://github.com/microsoft/vcpkg B. 运行脚本.\vcpkg\bootstrap-vcpkg.bat

3.安装编译rest相关库 vcpkg install --triplet x64-windows zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli` 过程中卡死,直接手动下载该库,拷贝到vcokg相关目录下 过程中报错,修改host文件 C:\Windows\System32\drivers\etc

140.82.114.3 github.com 199.232.69.194 github.global.ssl.fastly.net 199.232.68.133 raw.githubusercontent.com

所有依赖包提供下载:https://download.csdn.net/download/u014644870/12799788

cmake编译 A.新建build目录,保存相关生成文件 B.在VS命令行下运行 cmake ../Release -A x64 -DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake 需修改对应路径 5.打开sln解决方案,并全部编译。
最新回复(0)