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")问题解决