我使用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中为这个简单的建筑配置一些东西吗?
有什么建议吗?
非常感谢
发布于 2022-01-22 19:24:37
我也有过同样的问题。这个问题是通过使用git克隆来解决的--递归地获取SDK和它的依赖项,如指令所示:
git clone --recurse-submodules https://github.com/aws/aws-sdk-cpphttps://stackoverflow.com/questions/68942842
复制相似问题