亚马逊AVS C++ SDK 编译错误解决

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/z2066411585/article/details/81489578

undefined reference to__atomic_store_8

buildroot 中集成AVS 编译出现:

编译器: Mipsel
错误警告:

Please see compilation error log below:
[ 21%] Linking CXX executable AttachmentManagerV2Test
Attachment/Common/libAttachmentCommonTestLib.a(Common.cpp.o): In function alexaClientSDK::avsCommon::utils::sds::SharedDataStream<alexaClientSDK::avsCommon::utils::sds::InProcessSDSTraits>::BufferLayout::init(unsigned int, unsigned int)': Common.cpp:
(.text._ZN14alexaClientSDK9avsCommon5utils3sds16SharedDataStreamINS2_18InProcessSDSTraitsEE12BufferLayout4initEjj[_ZN14alexaClientSDK9avsCommon5utils3sds16SharedDataStreamINS2_18InProcessSDSTraitsEE12BufferLayout4initEjj]+0x320): 
undefined reference to__atomic_store_8'Common.cpp:

幸运的是 AVS C++ SDK Github 有人遇到该问题,也给出了解决方案

这里写图片描述

avs-sdk/SampleApp/src/CMakeLists.txt 中添加set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -latomic")问题解决

猜你喜欢

转载自blog.csdn.net/z2066411585/article/details/81489578