-
Notifications
You must be signed in to change notification settings - Fork 605
v1.2 build errors with Android NDK #305
Comments
Hi @INRIX-joel-winarske, Thanks for the feedback, we will investigate this issue! |
what is the cmake command that you are using? |
[ 19%] Building CXX object CapabilityAgents/AudioPlayer/src/CMakeFiles/AudioPlayer.dir/AudioPlayer.cpp.o The entire Alexa device stack (sqlite3, gtest, nghttp2, zlib, mbedtls or openssl, curl, portaudio, gstreamer, avs-device-sdk) builds fine and generates SampleApp if I apply the cast workarounds for the two files I mention. |
We have tried cross compiling successfully with NDK 14b. The environment variables are: export ANDROID_HOME=~/Library/Android/sdk And the cmake command is: You might have to add gstreamer and portaudio dependencies as well to this. |
That's building with the Android Studio bundled NDK. What's the verbose build output? Perhaps it's as simple as a compiler flag. |
yes with Android Studio bundled NDK. We do not have the build output currently as it was compiled few months back. Can you cross check your cmake options with the ones that I have listed? |
It's a newer version of NDK than what I'm using. I generally only use the Studio NDK for simple libraries. I'll take a closer look at what you provided and get back to you. Thanks. |
there were some problems on other versions of NDK, so if can you try with NDK 14b |
For now I'm sticking with 15b and patching the cast in my build script. This makes lots of things easier for me, and I can still single step the C/C++ libraries via Studio. I have portaudio working on target via OpenSLES, I just need to sort out the gstreamer issues I'm seeing. Were the >14b issues related to build or runtime? |
issues were build time |
Cool thanks |
Hi @jwinarske , can you share the cmake command or CMakefile that you used for cross compiling? It will help us improve our build for android. |
Hi Mradula you can have your PM contact me. |
Hello INRIX-joel-winarske, Did our PM get in contact with you? If not, and you still want to get in touch, please fill out this Contact Form and we will get in touch with you. If this is no longer an issue, please feel free to close this issue. Thank you, |
Hi INRIX-joel-winarske, We have problems when using NDKr14b build AVS SDK 1.4 for Android 6.0 Jack |
Hello INRIX-joel-winarske, |
Hi,
I am able to build AVS SDK with the current Android NDK on Linux Ubuntu 16.x LTS. I build the same stack from source that I use for Linux, which is:
sqlite3
portaudio GLES
gtest
nghttp2
mbedtls
zlib
curl (http only)
gstreamer
avs-device-sdk
I have a series of patches for gstreamer. I get's complicated, although I can run the AVS Device Sample app in an Android Emulator using a USB Microphone. It's responsive, and works well.
Joel
…________________________________
From: madhuravulapalli <notifications@github.com>
Sent: Friday, March 2, 2018 9:42:11 AM
To: alexa/avs-device-sdk
Cc: Joel Winarske; Mention
Subject: Re: [alexa/avs-device-sdk] v1.2 build errors with Android NDK (#305)
Hello INRIX-joel-winarske,
Are successfully able to build the AVS SDK with Android NDK ? I am new Android NDK build process, how to build the AVS sdk with Android NDK. can you please provide the instructions how to do it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#305 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AT8Ynr_64bmbg2_u7b5K9DVOoWP9mEt0ks5taYRogaJpZM4QRww2>.
|
Hi Joel, What type of c++ library you use, gnustl or llvm-libc++? Jack |
Hi Jack,
...
-DANDROID_STL=c++_shared \
-DAMAZON_KEY_WORD_DETECTOR=OFF \
-DKITTAI_KEY_WORD_DETECTOR=OFF \
-DSENSORY_KEY_WORD_DETECTOR=OFF \
...
c++_shared is stable only >= NDK r16.
I haven't had a need for wake word, as my current market sector is Automotive.
Joel
…________________________________
From: jie714 <notifications@github.com>
Sent: Saturday, March 10, 2018 5:18:27 AM
To: alexa/avs-device-sdk
Cc: Joel Winarske; Mention
Subject: Re: [alexa/avs-device-sdk] v1.2 build errors with Android NDK (#305)
Hi Joel,
What type of c++ library you use, gnustl or llvm-libc++?
Do you build sdk also include WakeWordEngine(Kitt.ai or Sensory)?
Jack
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#305 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AT8Ynu9tjHNJRjV-rPJ2hd0ViwVjWRhuks5tc9KjgaJpZM4QRww2>.
|
Hi Joel, I changed ndk to r16 with libc++_shared library, I also build without WakeWordEngine, WARNING: linker: SampleApp: unused DT entry: type 0x1d arg 0x2707e I use tombstone to check log as below: It seems the problem happened in AVSCommon/Utils/src/Logger/ConsoleLogger.cpp:59 Thanks. |
Hi Jack,
I haven't seen that. Don't forget you need to copy libc++_shared lib to the target, it's not part of the Android image.
For testing I do the following on a test device:
Push all libs to target "lib" folder: /data/data/my.app.location/files/lib
Exes to target: /data/data/my.app.location/files
Copy cert file to target: /data/data/my.app.location/certs
Then do something like this from "adb shell":
export LD_LIBRARY_PATH=/data/data/my.package.name/files/lib
export CA_CERTIFICATES=/data/data/my.package.name/certs/ca-certificates.crt
export TZ=UTC
./SampleApp /data/data/my.package.name/files/AlexaClientSDKConfig.json DEBUG9
Joel
…________________________________
From: jie714 <notifications@github.com>
Sent: Monday, March 12, 2018 8:23:54 PM
To: alexa/avs-device-sdk
Cc: Joel Winarske; Mention
Subject: Re: [alexa/avs-device-sdk] v1.2 build errors with Android NDK (#305)
Hi Joel,
I changed ndk to r16 with libc++_shared library, I also build without WakeWordEngine,
When I run SampleApp, it will appear below error,
WARNING: linker: SampleApp: unused DT entry: type 0x1d arg 0x2707e
WARNING: linker: /system/lib/libDefaultClient.so: unused DT entry: type 0x1d arg 0x165d0
WARNING: linker: /system/lib/libAuthDelegate.so: unused DT entry: type 0x1d arg 0xcd1f
WARNING: linker: /system/lib/libMediaPlayer.so: unused DT entry: type 0x1d arg 0x24638
WARNING: linker: /system/lib/libAIP.so: unused DT entry: type 0x1d arg 0x19fa3
WARNING: linker: /system/lib/libADSL.so: unused DT entry: type 0x1d arg 0x11e68
WARNING: linker: /system/lib/libAFML.so: unused DT entry: type 0x1d arg 0x990a
WARNING: linker: /system/lib/libAlerts.so: unused DT entry: type 0x1d arg 0x34652
WARNING: linker: /system/lib/libCertifiedSender.so: unused DT entry: type 0x1d arg 0xb92a
WARNING: linker: /system/lib/libNotifications.so: unused DT entry: type 0x1d arg 0x1b132
WARNING: linker: /system/lib/libAudioResources.so: unused DT entry: type 0x1d arg 0x3f9a
WARNING: linker: /system/lib/libPlaybackController.so: unused DT entry: type 0x1d arg 0xa117
WARNING: linker: /system/lib/libSpeakerManager.so: unused DT entry: type 0x1d arg 0x16ded
WARNING: linker: /system/lib/libSpeechSynthesizer.so: unused DT entry: type 0x1d arg 0x1b69c
WARNING: linker: /system/lib/libSettings.so: unused DT entry: type 0x1d arg 0x15d55
WARNING: linker: /system/lib/libSQLiteStorage.so: unused DT entry: type 0x1d arg 0x433f
WARNING: linker: /system/lib/libTemplateRuntime.so: unused DT entry: type 0x1d arg 0x1179c
WARNING: linker: /system/lib/libAudioPlayer.so: unused DT entry: type 0x1d arg 0x1c9ca
WARNING: linker: /system/lib/libExternalMediaPlayer.so: unused DT entry: type 0x1d arg 0x206cc
WARNING: linker: /system/lib/libAVSSystem.so: unused DT entry: type 0x1d arg 0x193f4
WARNING: linker: /system/lib/libACL.so: unused DT entry: type 0x1d arg 0x34cf2
WARNING: linker: /system/lib/libContextManager.so: unused DT entry: type 0x1d arg 0xf700
WARNING: linker: /system/lib/libPlaylistParser.so: unused DT entry: type 0x1d arg 0xe533
Segmentation fault
I use tombstone to check log as below:
DEBUG : pid: 31281, tid: 31281, name: SampleApp >>> SampleApp <<<
03-13 11:17:55.214 2547 2547 E DEBUG : AM write failed: Broken pipe
03-13 11:17:55.214 2547 2547 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x111100
03-13 11:17:55.217 2547 2547 F DEBUG : r0 ffde31b0 r1 ffde31b0 r2 00111120 r3 0011110c
03-13 11:17:55.217 2547 2547 F DEBUG : r4 ffde36cc r5 f75274bc r6 f6f289c4 r7 00000001
03-13 11:17:55.217 2547 2547 F DEBUG : r8 f752e6ec r9 00000023 sl f6f289c4 fp ffde33c0
03-13 11:17:55.217 2547 2547 F DEBUG : ip f65c6c2c sp ffde30a0 lr f6484520 pc f64845f8 cpsr 60010010
03-13 11:17:55.229 2547 2547 F DEBUG :
03-13 11:17:55.229 2547 2547 F DEBUG : backtrace:
03-13 11:17:55.229 2547 2547 F DEBUG : #00 pc 0014e5f8 /system/lib/libAVSCommon.so (_ZN14alexaClientSDK9avsCommon5utils6logger13ThreadMonikerC1Ev+324)
03-13 11:17:55.229 2547 2547 F DEBUG : #1<#1> pc 000ae57c /system/lib/libAVSCommon.so (__cxx_global_var_init+24)
03-13 11:17:55.229 2547 2547 F DEBUG : #2<#2> pc 0014eec0 /system/lib/libAVSCommon.so (_ZTHN14alexaClientSDK9avsCommon5utils6logger13ThreadMoniker15m_threadMonikerE+72)
03-13 11:17:55.229 2547 2547 F DEBUG : #3<#3> pc 0013ee20 /system/lib/libAVSCommon.so (_ZTWN14alexaClientSDK9avsCommon5utils6logger13ThreadMoniker15m_threadMonikerE+28)
03-13 11:17:55.229 2547 2547 F DEBUG : #4<#4> pc 0013f40c /system/lib/libAVSCommon.so (_ZN14alexaClientSDK9avsCommon5utils6logger13ThreadMoniker20getThisThreadMonikerEv+8)
03-13 11:17:55.229 2547 2547 F DEBUG : #5<#5> pc 0013eb44 /system/lib/libAVSCommon.so (_ZN14alexaClientSDK9avsCommon5utils6logger13ConsoleLoggerC1Ev+424)
03-13 11:17:55.229 2547 2547 F DEBUG : #6<#6> pc 0013e688 /system/lib/libAVSCommon.so (_ZN14alexaClientSDK9avsCommon5utils6logger13ConsoleLogger8instanceEv+100)
03-13 11:17:55.229 2547 2547 F DEBUG : #7<#7> pc 0013edfc /system/lib/libAVSCommon.so (_ZN14alexaClientSDK9avsCommon5utils6logger16getConsoleLoggerEv+8)
03-13 11:17:55.229 2547 2547 F DEBUG : #8<#8> pc 0014a6d0 /system/lib/libAVSCommon.so (_ZN14alexaClientSDK9avsCommon5utils6logger17LoggerSinkManagerC1Ev+152)
03-13 11:17:55.230 2547 2547 F DEBUG : #9<#9> pc 00149d40 /system/lib/libAVSCommon.so (_ZN14alexaClientSDK9avsCommon5utils6logger17LoggerSinkManager8instanceEv+72)
03-13 11:17:55.230 2547 2547 F DEBUG : #10<#10> pc 0014e38c /system/lib/libAVSCommon.so (_ZN14alexaClientSDK9avsCommon5utils6logger12ModuleLoggerC1ERKNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE+144)
It seems the problem happened in AVSCommon/Utils/src/Logger/ConsoleLogger.cpp:59
ThreadMoniker::getThisThreadMoniker().c_str(),
Do you have the same problem before?
Thanks.
Jack Ho
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#305 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AT8Ynvc-rhhDjeuHJJxp_GYcD5RDoEIzks5tdzvKgaJpZM4QRww2>.
|
Hi Joel, Do you build avs sdk also use NDK generate standalone toolchain? Several Steps want confirm with you. We use NDK16 generate standalone toolchain by below command: And below is our build script: CROSS_COMPILE=/home/jackho/arm_ndk_r16_libc/bin/arm-linux-androideabi- #And the cmake command is: Is there anything we miss to do? Thank you. Jack |
Hi Jack,
For Clang with arm I use:
export CC=
export CXX=
export LINK=
export LD=
export AR=
export RANLIB=
export STRIP=
export ARCH_FLAGS=" -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 "
export ARCH_LINK=" -Wl,--fix-cortex-a8 "
export CPPFLAGS=" ${ARCH_FLAGS} -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -fpermissive "
export CXXFLAGS=" ${ARCH_FLAGS} -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions "
export CFLAGS=" ${ARCH_FLAGS} -D__ANDROID_API__=$PLATFORM_VERSION -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 "
export LDFLAGS=" ${ARCH_LINK} "
I create the toolchain (in case of arm) with this command:
/home/joel/Android/Sdk/ndk-bundle/build/tools/make-standalone-toolchain.sh --arch=arm --platform=android-15 --toolchain=arm-linux-androideabi-4.9 --install-dir=/media/joel/0298EBFB98EBEADD/Alexa/AVSD
Also for your CMake, you're not setting up the Android Toolchain correctly. It should look something like this:
cmake
-DANDROID_PLATFORM=android-15
-DANDROID_ABI=armeabi-v7a
-DANDROID_STL=c++_shared
-DCMAKE_INSTALL_PREFIX:PATH=/media/joel/0298EBFB98EBEADD/Alexa/AVSD/out/armv7
-DCMAKE_TOOLCHAIN_FILE=/home/joel/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake
-DCMAKE_BUILD_TYPE=Debug
-DGTEST_LIBRARY=/media/joel/0298EBFB98EBEADD/Alexa/AVSD/out/armv7/lib/libgtest.a
-DGTEST_MAIN_LIBRARY=/media/joel/0298EBFB98EBEADD/Alexa/AVSD/out/armv7/lib/libgtest_main.a
-DGTEST_INCLUDE_DIR=../ThirdParty/googletest-release-1.8.0/googletest/include
-DGSTREAMER_MEDIA_PLAYER=ON
-DAMAZON_KEY_WORD_DETECTOR=OFF
-DKITTAI_KEY_WORD_DETECTOR=OFF
-DSENSORY_KEY_WORD_DETECTOR=OFF
-DACSDK_EMIT_SENSITIVE_LOGS=OFF ../ThirdParty/avs-device-sdk
The path for CMAKE_INSTALL_PREFIX and PKG_CONFIG_PATH should be the same. You build/install your library dependencies, then detect them in CMake as you go via pkg-config.
You can use the standalone NDK or the Android Studio bundled NDK. They're the same thing, just stored in a different path.
I build the GStreamer Android Universal Package from source, installing it into CMAKE_INSTALL_PREFIX. Same with the PortAudio OpenSLES lib. This lib will allow recording of audio in the Android emulator, which is pretty cool.
https://github.com/Gundersanne/portaudio_opensles
The approach I used was to start small, exercise the test cases, then added more complex dependencies, until it finally all worked.
Joel
…________________________________
From: jie714 <notifications@github.com>
Sent: Wednesday, March 14, 2018 9:03:09 AM
To: alexa/avs-device-sdk
Cc: Joel Winarske; Mention
Subject: Re: [alexa/avs-device-sdk] v1.2 build errors with Android NDK (#305)
Hi Joel,
Thank you for your reply, yes, I also put libc++_shared.so my lib folder,
Do you build avs sdk also use NDK generate standalone toolchain?
Do you also build alsa-lib for SampleApp?
Several Steps want confirm with you.
We use NDK16 generate standalone toolchain by below command:
make_standalone_toolchain.py --arch arm --api 21 --stl libc++ --install-dir /tmp/my-android-toolchain
And below is our build script:
CROSS_COMPILE=/home/jackho/arm_ndk_r16_libc/bin/arm-linux-androideabi-
export NDK_HOME=/home/jackho/android-ndk-r16b
export AR="$CROSS_COMPILE"ar
export CC="$CROSS_COMPILE"clang
export CROSS_SYSROOT=$NDK_HOME/platforms/android-23/arch-arm
export CXX="$CROSS_COMPILE"clang++
export LD="$CROSS_COMPILE"ld
export LINK=$CXX
export RANLIB="$CROSS_COMPILE"ranlib
export STRIP="$CROSS_COMPILE"strip
export SYSROOT=$NDK_HOME/platforms/android-21/arch-arm
export PKG_CONFIG_PATH=/home/jackho/AVS/armv7/lib/pkgconfig
#And the cmake command is:
cmake ../avs-device-sdk-1.5/
-DCMAKE_CXX_COMPILER=$CXX
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_PREFIX_PATH=/home/jackho/AVS/armv7/
-DKITTAI_KEY_WORD_DETECTOR=OFF
-DAMAZON_KEY_WORD_DETECTOR=OFF
-DSENSORY_KEY_WORD_DETECTOR=OFF
-DGSTREAMER_MEDIA_PLAYER=ON
-DPORTAUDIO=ON
-DPORTAUDIO_LIB_PATH=/home/jackho/AVS/avs-client-sdk/ext/lib/libportaudio.a
-DPORTAUDIO_INCLUDE_DIR=/home/jackho/AVS/avs-client-sdk/ext/include/
-DCURL_LIBRARY=/home/jackho/AVS/avs-client-sdk/ext/lib/libcurl.a
-DCURL_INCLUDE_DIR=/home/jackho/AVS/avs-client-sdk/ext/include/
-DSQLITE_INCLUDE_DIRS=/home/jackho/AVS/avs-client-sdk/ext/include/
Is there anything we miss to do?
Thank you.
Jack
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#305 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AT8Ynlhj1eIUuE-5tsqkOBVfa_m7yxIWks5teT89gaJpZM4QRww2>.
|
Hi joel, Thanks, I follow your steps to build sdk, when I run SampleApp, Jack |
Hi @mradulan @INRIX-joel-winarske @jwinarske , We had brought up AVS SDK for LInux using the setup guide. ./make-standalone-toolchain.sh --arch=x86_64 --platform=android-21 --stl=libc++ --install-dir=/home/Amazon_Alexa_SDK/sdk-folder/toolchain/x86_toolchain We set the following environment variables - cd /home/Amazon_Alexa_SDK/sdk-folder/sdk_croscompile/ export PATH=/home/Amazon_Alexa_SDK/sdk-folder/toolchain/android-ndk-r14b/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin:/home/slomo/Projects/gstreamer/cerbero/build/dist/android_universal/x86_64/lib:$PATH And our cmake command is: cmake -DANDROID_ABI=x86_64 -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang -DANDROID_TOOLCHAIN=clang -DANDROID_STL=c++static -D__ANDROID_API_=21 -DCMAKE_INSTALL_PREFIX:PATH=/home/Amazon_Alexa_SDK/sdk-folder/out/x86_64 -DCMAKE_CXX_COMPILER=$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -DCMAKE_TOOLCHAIN_FILE=/home/Amazon_Alexa_SDK/sdk-folder/toolchain/android-ndk-r14b/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -DGTEST_LIBRARY=/home/Amazon_Alexa_SDK/sdk-folder/out/x86_64/lib/libgtest.a -DGTEST_MAIN_LIBRARY=/home/Amazon_Alexa_SDK/sdk-folder/out/x86_64/lib/libgtest_main.a -DGTEST_INCLUDE_DIR=/home/Amazon_Alexa_SDK/sdk-folder/out/x86_64/include -DGSTREAMER_MEDIA_PLAYER=ON -DAMAZON_KEY_WORD_DETECTOR=OFF -DKITTAI_KEY_WORD_DETECTOR=OFF -DSENSORY_KEY_WORD_DETECTOR=OFF -DCURL_LIBRARY=/home/Amazon_Alexa_SDK/sdk-folder/out/x86_64/lib/libcurl.so -DCURL_INCLUDE_DIR=/home/Amazon_Alexa_SDK/sdk-folder/out/x86_64/include -DPORTAUDIO=ON -DPORTAUDIO_INCLUDE_DIR=/home/Amazon_Alexa_SDK/sdk-folder/out/x86_64/include -DPORTAUDIO_LIB_PATH=/home/Amazon_Alexa_SDK/sdk-folder/out/x86_64/lib/libportaudio.a /home/Amazon_Alexa_SDK/sdk-folder/sdk-source/avs-device-sdk For Gstreamer, we used the GStreamer Android Universal Package binaries, we used https://gstreamer.freedesktop.org/data/pkg/android/1.14.1/ and put the corresponding x86_64 files into CMAKE_INSTALL_PREFIX path. When trying to build SampleApp, ........ /home/Amazon_Alexa_SDK/sdk-folder/toolchain/android-ndk-r14b/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld: warning: /home/slomo/Projects/gstreamer/cerbero/build/dist/android_universal/x86_64/lib/libgstapp-1.0.a(libgstapp_1.0_la-gstappsrc.o): last entry in mergeable string section '.debug_str' not null terminated ....... /home/Amazon_Alexa_SDK/sdk-folder/toolchain/android-ndk-r14b/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld: error: /home/slomo/Projects/gstreamer/cerbero/build/dist/android_universal/x86_64/lib/libgstreamer-1.0.a(libgstreamer_1.0_la-gstcaps.o): unsupported reloc 42 against global symbol _gst_caps_type Could you help with this issue ? |
Hello. I've followed the the Amazon devs' guide on building the SDK for Android and I've built it successfully, so now I'm trying to get the Sample app running on Android. My main problem right now is getting CMake to find GStreamer. I've downloaded the Android Universal Package bins and have tried setting -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_TARGET}:/path/to/gst_armv7 and -DCMAKE_PREFIX_PATH:PATH=${INSTALL_TARGET}:/path/to/gst_armv7. How do I get CMake to find the gstreamer files? @INRIX-joel-winarske, you mentioned that you installed the GStreamer Android Universal Package from source, but I can't find the source files anywhere. Do you happen to know where they're available? Thanks. |
Hi @INRIX-joel-winarske @mradulan @jwinarske @jie714 @jwinarske NDK Version used:16b As joel mentioned above, I copied the libs,executable and cert files to test device(android emulator). I'm facing run time issues related to libc++_shared.so(this library is copied from the lib64 folder in my standalone toolchain ). Please suggest a solution. Below pasting my tombstone output. Build fingerprint: 'Android/sdk_gphone_x86_64/generic_x86_64:8.0.0/OSR1.180418.003/4741120:userdebug/dev-keys' backtrace: stack: Preth |
I am using the gstreamer 1.8.2 files available from https://gstreamer.freedesktop.org/data/pkg/android. unzip and copy all the libs and pkgconfig files to the folder where you installed other libraries(which is specified by CMAKE_INSTALL_PREFIX).If you have already installed dependencies there will be a pkgconfig folder in your CMAKE_INSTALL_PREFIX path. So while copying please merge the pkgconfig files from the gstreamer folder. That's what I did. |
@JLu76 could you please send me the dev guide on building the SDK for Android? |
Hi @INRIX-joel-winarske @mradulan Did you face any issue related to createConverter? Compilation and build is successfull.But at run time it's failing with the following issue.Could you please check it out? 2018-07-31 06:52:49.847 [ 1] 9 MediaPlayer:createCalled 2018-07-31 06:52:50.186 [ 1] E MediaPlayer:setupPipelineFailed:reason=createConverterElementFailed 2018-07-31 06:52:50.192 [ 1] E MediaPlayer:initPlayerFailed:reason=setupPipelineFailed 2018-07-31 06:52:50.194 [ 1] 9 MediaPlayer:~MediaPlayerCalled (SampleApp:4613): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed 2018-07-31 06:52:50.211 [ 1] 9 MediaPlayer:resetPipeline (SampleApp:4613): GLib-CRITICAL **: g_source_remove: assertion 'tag > 0' failed 2018-07-31 06:52:50.216 [ 1] E RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=SpeakMediaPlayer 2018-07-31 06:52:50.223 [ 1] C SampleApplication:Failed to create media player for speech! 2018-07-31 06:52:50.229 [ 1] C SampleApplication:Failed to initialize SampleApplication Failed to create to SampleApplication! Note: Gstreamer binary is taken from https://gstreamer.freedesktop.org/pkg/android/ I have tried the 1.10.2 as well as 1.8.0 gstreamer binary version and for both the error is same. Regards, |
Hi All, ARNING: linker: libcurl.so: unused DT entry: type 0x6fffffff arg 0x1 (SampleApp:19907): GStreamer-CRITICAL : gst_object_unref: assertion 'object != NULL' failed Thanks |
@rjajra To start you are not building curl correctly. I need to have HTTP2 support... |
@preth-2018 When you build GStreamer and AVS client, they both need to use the same NDK, as well as the same API setting. So that the libs are linking to the same libraries that are present on the target. If you don't do this you will have lots of strange problems. |
Take a look at the Alexa Auto SDK. They have a working sample there. It's far from commercial ready, but gets you up an running on Android... One key issue with this sample, is that your Android Studio NDK may be newer than that of the bitbake build system. So you may need to regress your Android Studio NDK to match. |
Thanks for replying Joel. I tried the Auto SDK Sample Application and its working. Regards, |
AlexaClientSdkInit:initializeFailed:reason=curlDoesNotSupportHTTP2 But still I was getting the below runtime issue eventhough all gstreamer plugins are cross compiled and installed. == (SampleApp:19907): GStreamer-CRITICAL : gst_object_unref: assertion 'object != NULL' failed Thanks |
I was also facing the same issue(arm-v7a) . You can refer this thread also .It might help. regards |
After setting GST_PLUGIN_PATH, I was getting "Bus Error" export GST_PLUGIN_PATH_1_0=/data/gstplugins/usr/lib/gstreamer-1.0 === any help on this error?. Thanks |
Hi, I am try for the same procedure to deploy AVS SDK on android Ore 8.1, running on resepaker. I followed this guide but I am not able to setup AVS SDK on android. https://github.com/alexa/avs-device-sdk/wiki/Android-Quick-Start-Guide. I have ubuntu and installed all the packages as per the procedure, I am not able to run shell and bash to install setup.sh config.txt and It says bash not found. I complied the code bash -x setup.sh config.txt after adb connected devices, script ran but it didnt install on the device but I got an error
Regards |
Target: Android
EABI=All
PLATFORM_VERSION=15 (32 bit) & 21 (64 bit)
NDK_VERSION=15b
Files affected:
CapabilityAgents/AudioPlayer/src/AudioPlayer.cpp
CapabilityAgents/System/src/UserInactivityMonitor.cpp
I see the following error pattern in cases which are calling AddMember with type of std::chrono::duration_caststd::chrono::milliseconds. If you cast this type to (uint64_t) in all cases, it's happy. If there is a better solution on it's way - great, otherwise I can submit a PR.
The text was updated successfully, but these errors were encountered: