Reputation: 9
For several months I'm looking for build an Qt application for Android using the AWS C++ SDK. I searched on Internet but I found nothing...
I build the AWS C++ SDK for Android without problem like that :
*/Applications/CMake.app/Contents/bin/cmake -DBUILD_ONLY="email;cognito-identity;lambda;core;cognito-idp;identity-management" -DNDK_DIR="/Users/bboglietti/Downloads/android-ndk-r10e" -DCMAKE_CXX_FLAGS="-std=c++11" -DTARGET_ARCH=ANDROID -DCMAKE_INSTALL_PREFIX="/Users/bboglietti/aws_sdk/aws_build_android/build_android_dynamic" /Users/bboglietti/aws_sdk/aws-sdk-cpp-master*
But When I build my application, I have many errors of unreferenced links...
Please, someone could put a brief Tutorial or Example? It is working on MacOS, Windows, Linux, IOS but Android resists...
Upvotes: 0
Views: 971
Reputation: 74
in mac ox, or console, set this:
mkdir build_sdk_android
cd build_sdk_android
cmake path/aws-sdk-cpp/ -DNDK_DIR="path to /Android/sdk/android-ndk-r19c" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCUSTOM_MEMORY_MANAGEMENT=ON -DTARGET_ARCH=ANDROID -DANDROID_NATIVE_API_LEVEL=19 -DBUILD_ONLY="identity-management;s3;rekognition" -DCMAKE_INSTALL_PREFIX="path to install dir/build_sdk_android/install_sdk_desktop"
make
make install
Upvotes: 0
Reputation: 1930
Qt Applications needs a few additional environment setup for developing applications for android.
These links may help you start things up a bit
https://appbus.wordpress.com/category/qt-for-mobile/overview/
https://doc.qt.io/qt-5/deployment-android.html
Upvotes: 2