AWS sdk,尝试构建X86 Windows。 C++

问题描述 投票:0回答:1

我正在尝试在 MFC 应用程序中使用 aws sdk。我无法为 x86 平台编译 sdk。

我正在尝试的命令是...

cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="s3;dynamodb;cognito-identity;iot" -DCMAKE_GENERATOR_PLATFORM=x86
cmake --build . --config=Release
cmake --install . --config=Release

当我尝试时,我得到...

Build FAILED.

"C:\Users\redst\OneDrive\Documents\GitHub\xxxx\libs\aws-sdk-cpp\cmake_build\CMakeFiles\3.29.1\VCTargetsPath.vcxproj" (default target) (1) ->
(PrepareForBuild target) ->
  C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(438,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Debug|Win32. [C:\Users\redst\OneDrive\Documents\GitHub\xxxx\libs\aws-sdk-cpp\cmake_build\CMakeFiles\3.29.1\VCTargetsPath.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.12

退出代码:1

c++ windows x86 mfc aws-sdk
1个回答
0
投票

CMAKE_GENERATOR_PLATFORM
应该是
Win32
不是
x86

© www.soinside.com 2019 - 2024. All rights reserved.