1. 安装¶
1.1. SDK¶
Github : https://github.com/aws/aws-sdk-cpp
1.2. 环境要求¶
1.2.1. Windows¶
- Visual Studio 2013 或之后的版本
1.2.2. Linux && OSX¶
- GCC 4.9+
1.2.3. OSX¶
- Clang 3.3+
1.3. 安装¶
1.3.1. Windows¶
使用vcpkg
- vcpkg integrate install
- vcpkg install aws-sdk-cpp:x86-windows
使用NuGet
- 打开你的工程
- 在Solution Explorer右击你的工程名,选择Manage NuGet Packages
- 输入AWSSDKCPP-S3,然后点击安装
源码安装
- git clone https://github.com/aws/aws-sdk-cpp.git
- msbuild ALL_BUILD.vcxproj
- msbuild INSTALL.vcxproj
1.3.2. Linux¶
Get SDK
git clone https://github.com/aws/aws-sdk-cpp.git
Dependencies
- Debian/Ubuntu-based systems : sudo apt-get install libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev libpulse-dev
- Redhat/Fedora-based systems : sudo dnf install libcurl-devel openssl-devel libuuid-devel pulseaudio-devel
Compile
- mkdir sdk_build
- cd sdk_build
- cmake <path/to/sdk/source>
- make
Install
sudo make install
1.3.3. OSX¶
和linux一样,也需要安装相关的依赖库:brew install libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev libpulse-dev 之后的编译安装同linux