基础架构系列篇-系统WIN10使用VS+CMAKE编译AWS-SDK-CPP
目录
1.下载GIT(https://git-scm.com/downloads),本地安装
2.下载CMAKE(https://cmake.org/download/) ,这里用的版本3.17,本地安装
3.下载VS19版本,安装
4.下载AWS-SDK-1.8
地址https://github.com/aws/aws-sdk-cpp/tags
选择版本标签aws-sdk-cpp-1.8.173
解压D:\SW\SDK\aws-sdk-cpp-1.8.173
5.本地创建编译目录D:\SW\SDK\BUILD18
6.切换cd D:\SW\SDK\BUILD18
(1)编译执行 cmake D:\SW\SDK\aws-sdk-cpp-1.8.173 -DCMAKE_BUILD_TYPE=Debug
或
(2)编译s3库执行 cmake D:\SW\SDK\aws-sdk-cpp-1.8.173 -DCMAKE_BUILD_TYPE=Debug -DBUILD_ONLY="s3"
或
For Visual Studio:
cd <BUILD_DIR>
cmake <path-to-root-of-this-source-code> -G "Visual Studio 19 Win64" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=<path-to-install>
msbuild ALL_BUILD.vcxproj /p:Configuration=Debug
7.切换D:\SW\SDK\BUILD18\aws-cpp-sdk-s3
用VS打开D:\SW\SDK\BUILD18\aws-cpp-sdk-s3\aws-cpp-sdk-s3.vcxproj
8.查看编译的库
D:\SW\SDK\BUILD18\bin\Debug\aws-cpp-sdk-s3.dll
D:\SW\SDK\BUILD18\aws-cpp-sdk-s3\Debug\aws-cpp-sdk-s3.lib
9.更新的版本AWS-SDK参考(网络问题下载异常未使用)
(1) https://docs.aws.amazon.com/zh_cn/sdk-for-cpp/v1/developer-guide/welcome.html
(2) https://github.com/aws/aws-sdk-cpp
|