Deploy external static libs (.a) to apk
-
App compiled and built with static libraries (.a) Android settings armv7, Qt creator created apk file, but did not include .a libs. How to deploy .a with apk.
This is pro entries, did not worked.ANDROID_PACKAGE_SOURCE_DIR = $$PWD/thirdParty/libs/static-libs #android { # QT += androidextras # ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-build # ANDROID_EXTRA_LIBS += $$PWD/thirdParty/libs/static-libs/api.a \ # $$PWD/thirdParty/libs/static-libs/store.a \ # $$PWD/thirdParty/libs/static-libs/store1.a \ # $$PWD/thirdParty/libs/static-libs/libtinycbor.a \ # OTHER_FILES += android-build/AndroidManifest.xml #} -
App compiled and built with static libraries (.a) Android settings armv7, Qt creator created apk file, but did not include .a libs. How to deploy .a with apk.
This is pro entries, did not worked.ANDROID_PACKAGE_SOURCE_DIR = $$PWD/thirdParty/libs/static-libs #android { # QT += androidextras # ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-build # ANDROID_EXTRA_LIBS += $$PWD/thirdParty/libs/static-libs/api.a \ # $$PWD/thirdParty/libs/static-libs/store.a \ # $$PWD/thirdParty/libs/static-libs/store1.a \ # $$PWD/thirdParty/libs/static-libs/libtinycbor.a \ # OTHER_FILES += android-build/AndroidManifest.xml #} -
@marvic .a is a static lib and linked to your app. It is included in your app. No need to deploy it.
@JoeCFD said in Deploy external static libs (.a) to apk:
@marvic .a is a static lib and linked to your app. It is included in your app. No need to deploy it.
It is not included, as app is not running . And when apk is open in android studio, in libs folder .a files not appear in apk.
-
@JoeCFD said in Deploy external static libs (.a) to apk:
@marvic .a is a static lib and linked to your app. It is included in your app. No need to deploy it.
It is not included, as app is not running . And when apk is open in android studio, in libs folder .a files not appear in apk.
-
@JoeCFD said in Deploy external static libs (.a) to apk:
@marvic .a is a static lib and linked to your app. It is included in your app. No need to deploy it.
It is not included, as app is not running . And when apk is open in android studio, in libs folder .a files not appear in apk.
@marvic said in Deploy external static libs (.a) to apk:
It is not included, as app is not running
Static libs ARE put into executables - that is the whole point of static libs!
If your app is not working then please tell us what exactly is not working. -
@marvic said in Deploy external static libs (.a) to apk:
It is not included, as app is not running
Static libs ARE put into executables - that is the whole point of static libs!
If your app is not working then please tell us what exactly is not working.@jsulm said in Deploy external static libs (.a) to apk:
@marvic said in Deploy external static libs (.a) to apk:
It is not included, as app is not running
Static libs ARE put into executables - that is the whole point of static libs!
If your app is not working then please tell us what exactly is not working.Trying to run Qt qml app on android emulator (x86) debug, It compiled and created, The moment it flashes and stops app, means died, Error in Application output says
"org.qtproject.examples.one." died.
Qt5.14.2, NDK 20, 21
Android build sdk is 28, tried with 29 20 32 33 same result,
avd Api 30, 28
created x86 images, target selected Android 9, 10 GoogleWhen I try to run Qt examples like clock, it works fine.
-
@jsulm said in Deploy external static libs (.a) to apk:
@marvic said in Deploy external static libs (.a) to apk:
It is not included, as app is not running
Static libs ARE put into executables - that is the whole point of static libs!
If your app is not working then please tell us what exactly is not working.Trying to run Qt qml app on android emulator (x86) debug, It compiled and created, The moment it flashes and stops app, means died, Error in Application output says
"org.qtproject.examples.one." died.
Qt5.14.2, NDK 20, 21
Android build sdk is 28, tried with 29 20 32 33 same result,
avd Api 30, 28
created x86 images, target selected Android 9, 10 GoogleWhen I try to run Qt examples like clock, it works fine.
-
@marvic Please run with debugger, maybe you will get more useful information to identify the issue.
@jsulm said in Deploy external static libs (.a) to apk:
@marvic Please run with debugger, maybe you will get more useful information to identify the issue.
Same app works fine on desktop qt creator emulator, but on phone and on (avd) emulator, it just displays empty screen.