【问题标题】:compile error on building full aws-sdk-cpp for linux在为 linux 构建完整的 aws-sdk-cpp 时出现编译错误
【发布时间】:2021-08-26 17:15:53
【问题描述】:

我使用 CMake 3.21.2 并收到此错误:

$ cmake ../aws-sdk-cpp-1.9.89 -DCMAKE_BUILD_TYPE=Release
...    
-- The C compiler identification is GNU 7.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Updating version info to 1.9.89
-- Custom memory management disabled
-- Performing Test CURL_HAS_H2
-- Performing Test CURL_HAS_H2 - Success
-- Performing Test CURL_HAS_TLS_PROXY
-- Performing Test CURL_HAS_TLS_PROXY - Success
CMake Error at aws-cpp-sdk-core/CMakeLists.txt:504 (aws_use_package):
  Unknown CMake command "aws_use_package".


-- Configuring incomplete, errors occurred!
See also "/home/ec2-user/sdk/CMakeFiles/CMakeOutput.log".
$

我使用 AWS 步骤,但不知道。 我必须在 CMakeFile.txt 中为这个简单的构建配置一些东西吗?

有什么建议吗?

非常感谢

【问题讨论】:

    标签: aws-sdk-cpp


    【解决方案1】:

    我有同样的问题。该问题已通过使用 git clone --recursive 来获取 SDK 及其依赖项得到解决,如说明中所示:

    git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp
    

    【讨论】:

      猜你喜欢
      • 2020-08-27
      • 1970-01-01
      • 1970-01-01
      • 2013-06-10
      • 1970-01-01
      • 1970-01-01
      • 2019-05-27
      • 2018-05-18
      • 1970-01-01
      相关资源
      最近更新 更多