-
Hi! I'm looking into using this SDK for developing an Android app using the Android NDK. There are installation instructions for Linux, but I don't think they translate automatically for Android. Is anyone able to help on the topic? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hello, I have the same question. I tried compiling (in linux) using an existing android_sdk/ndk/25.1.8937393 toolchain, however cmake fails: [cmake] Change Dir: '/home/vasileios/Development/Projects/Extenly/smartLamp/aws/iot/build-aws-iot-device-sdk-cpp-v2-Android_Qt_6_6_1_Clang_armeabi_v7a-Debug/deps/AWSLC/CMakeFiles/CMakeScratch/TryCompile-x7zv7d' [cmake] Run Build Command(s): /home/vasileios/Development/Qt/Tools/CMake/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_29b05/fast [cmake] /usr/bin/gmake -f CMakeFiles/cmTC_29b05.dir/build.make CMakeFiles/cmTC_29b05.dir/build [cmake] gmake[1]: Entering directory '/home/vasileios/Development/Projects/Extenly/smartLamp/aws/iot/build-aws-iot-device-sdk-cpp-v2-Android_Qt_6_6_1_Clang_armeabi_v7a-Debug/deps/AWSLC/CMakeFiles/CMakeScratch/TryCompile-x7zv7d' [cmake] Building C object CMakeFiles/cmTC_29b05.dir/testCCompiler.c.o [cmake] /home/vasileios/Development/android_sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -fexceptions -fcolor-diagnostics -MD -MT CMakeFiles/cmTC_29b05.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_29b05.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_29b05.dir/testCCompiler.c.o -c /home/vasileios/Development/Projects/Extenly/smartLamp/aws/iot/build-aws-iot-device-sdk-cpp-v2-Android_Qt_6_6_1_Clang_armeabi_v7a-Debug/deps/AWSLC/CMakeFiles/CMakeScratch/TryCompile-x7zv7d/testCCompiler.c [cmake] clang: warning: argument unused during compilation: '-mthumb' [-Wunused-command-line-argument] [cmake] error: unknown target CPU 'armv7-a' [cmake] note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake, icelake-client, rocketlake, icelake-server, tigerlake, sapphirerapids, alderlake, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, znver3, x86-64, x86-64-v2, x86-64-v3, x86-64-v4 [cmake] gmake[1]: *** [CMakeFiles/cmTC_29b05.dir/build.make:79: CMakeFiles/cmTC_29b05.dir/testCCompiler.c.o] Error 1 [cmake] gmake[1]: Leaving directory '/home/vasileios/Development/Projects/Extenly/smartLamp/aws/iot/build-aws-iot-device-sdk-cpp-v2-Android_Qt_6_6_1_Clang_armeabi_v7a-Debug/deps/AWSLC/CMakeFiles/CMakeScratch/TryCompile-x7zv7d' [cmake] gmake: *** [Makefile:127: cmTC_29b05/fast] Error 2` |
Beta Was this translation helpful? Give feedback.
-
Sorry, but we currently don't support using this c++ sdk with the android ndk. We do support it with the java sdk and have examples here. Please open a feature request if you would like to see this supported with this sdk. |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Sorry, but we currently don't support using this c++ sdk with the android ndk. We do support it with the java sdk and have examples here. Please open a feature request if you would like to see this supported with this sdk.