alexa / avs-device-sdk

An SDK for commercial device makers to integrate Alexa directly into connected products.
https://developer.amazon.com/alexa/alexa-voice-service
Apache License 2.0
1.26k stars 604 forks source link

Compile error when I compile AVSCommon with Android.mk #1123

Closed JetTong closed 5 years ago

JetTong commented 5 years ago

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

We will develop on the Android platform, but considering the stability problem, we decided to develop in C++ language, so we use android.mk to compile avs SDK integrated into the Android system. But when I compile,

include

include

Always find No such file or directory

What is the expected behavior?

Compile pass

What behavior are you observing?

we will build IDH while u make sprdidh Import includes file: out/target/product/xxx/obj/SHARED_LIBRARIES/libAVSCommon_intermediates/import_includes target thumb C++: libAVSCommon <= external/avs-device-sdk-master/AVSCommon/AVS/src/MessageRequest.cpp In file included from external/avs-device-sdk-master/AVSCommon/AVS/src/MessageRequest.cpp:16:0: external/avs-device-sdk-master/AVSCommon/AVS/include/AVSCommon/AVS/MessageRequest.h:20:18: fatal error: memory: No such file or directory

Tell us about your environment:

Android code is hosted on git and we will develop it based on the Android code in C++

Tell us about your OS (Type & version):

celinval commented 5 years ago

Hi @JetTong,

Can you please let us know how you are importing the SDK into your project?

One possible solution is to compile the SDK using the android script which will build all the SDK libraries. Then you can set Android.mk to use libraries built by the script.

JetTong commented 5 years ago

@celinval I use the Amazon official website "Ubuntu Linux" code, then put it into the andorid source code, use android.mk instead of Cmake to compile the library into the android system,

visayamv commented 5 years ago

Hi @JetTong , please use the Android Guide instead. Thanks.

kclchan commented 5 years ago

I am closing this issue due to inactivity. Please feel free to re-open it if it has been closed in error.