前提・実現したいこと
MAC 上で aws-sdk-c++ を使いたい
発生している問題・エラーメッセージ
https://github.com/aws/aws-sdk-cpp
にかかれてある依存ライブラリ
aws-c-event-stream をビルドしたところ以下の様なエラーでビルドできません
エラーメッセージ
CMake Error at ~/.local/lib/cmake/lib/cmake/AwsFindPackage.cmake:19 (find_package): By not providing "Findaws-c-io.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "aws-c-io", but CMake did not find one. Could not find a package configuration file provided by "aws-c-io" with any of the following names: aws-c-ioConfig.cmake aws-c-io-config.cmake Add the installation prefix of "aws-c-io" to CMAKE_PREFIX_PATH or set "aws-c-io_DIR" to a directory containing one of the above files. If "aws-c-io" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:75 (aws_use_package) -- Configuring incomplete, errors occurred! See also "/tmp/aws-c-event-stream/build/CMakeFiles/CMakeOutput.log". See also "/tmp/aws-c-event-stream/build/CMakeFiles/CMakeError.log".
/tmp/aws-c-event-stream/build/CMakeFiles/CMakeError.log の中は以下です
Performing C SOURCE FILE Test HAS_MOUTLINE_ATOMICS failed with the following output: Change Dir: /tmp/aws-c-event-stream/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_0d7ff/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_0d7ff.dir/build.make CMakeFiles/cmTC_0d7ff.dir/build Building C object CMakeFiles/cmTC_0d7ff.dir/src.c.o /Library/Developer/CommandLineTools/usr/bin/cc -DHAS_MOUTLINE_ATOMICS -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -moutline-atomics -o CMakeFiles/cmTC_0d7ff.dir/src.c.o -c /tmp/aws-c-event-stream/build/CMakeFiles/CMakeTmp/src.c clang: error: unknown argument: '-moutline-atomics' make[1]: *** [CMakeFiles/cmTC_0d7ff.dir/src.c.o] Error 1 make: *** [cmTC_0d7ff/fast] Error 2 Source file was: int main(void) { return 0; }
エラーメッセージで検索してもひっかからないし、
MAC上で半年や1年ほど前に特に難しい事せずに公式通りでビルドしてる記事がみつかるので
バージョンが新しすぎるせい?な気がしてるんですが
MAC上で aws-sdk-c++ がビルドできてる方いたら
cmake, aws-c-event-stream, aws-sdk-c++ のバージョンを教えていただけないでしょうか
試したこと
brew install cmake git clone https://github.com/awslabs/aws-c-common cmake -DCMAKE_PREFIX_PATH=$HOME/.local/lib/cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/lib/cmake -S aws-c-common -B aws-c-common/build cmake --build aws-c-common/build --target install git clone https://github.com/awslabs/aws-checksums cmake -DCMAKE_PREFIX_PATH=$HOME/.local/lib/cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/lib/cmake -S aws-checksums -B aws-checksums/build cmake --build aws-checksums/build --target install git clone https://github.com/awslabs/aws-c-event-stream cmake -DCMAKE_PREFIX_PATH=$HOME/.local/lib/cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/lib/cmake -S aws-c-event-stream -B aws-c-event-stream/build cmake --build aws-c-event-stream/build --target install
補足情報(FW/ツールのバージョンなど)
MAC OS Catalina 10.15.7
cmake 3.19.4
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。