Hello,

Ah, I see. I was always thinking that lib files goes directly to lib folder inside of APK. But actually they goes to lib\PLATFORM folder.

But why Qt Creator generates such strange lib names then? It could also keep original name and just put it in different folders...


On 7/18/2021 2:33 PM, ekke wrote:
Am 17.07.21 um 12:46 schrieb Alexander Dyagilev:

Hello,

Hmm... Same names for different platforms? Why does not they conflict?

they are in different folders

ekke


On 7/15/2021 5:38 PM, Jérôme Godbout wrote:

You will need to build your library for all arch that your aab contain. (most likely you build armv7 32 bits and armv8 64 bits) You need to have the lib in armv7 and one build for armv8 too. Just make sure you have those generate and include properly (recent Qt > 5.14.0) you just add them all it

For example my open ssl build:

/ANDROID_EXTRA_LIBS += \/

/$$AMOTUS_OPEN_SSL/Android/armeabi-v7a/libcrypto_1_1.so \/

/$$AMOTUS_OPEN_SSL/Android/armeabi-v7a/libssl_1_1.so \/

/$$AMOTUS_OPEN_SSL/Android/arm64-v8a/libcrypto_1_1.so \/

/$$AMOTUS_OPEN_SSL/Android/arm64-v8a/libssl_1_1.so \/

/$$AMOTUS_OPEN_SSL/Android/x86/libcrypto_1_1.so \/

/$$AMOTUS_OPEN_SSL/Android/x86/libssl_1_1.so \/

/$$AMOTUS_OPEN_SSL/Android/x86_64/libcrypto_1_1.so \/

/$$AMOTUS_OPEN_SSL/Android/x86_64/libssl_1_1.so/

*Jérôme Godbout, B. Ing.***

*
*Software / Firmware Team Lead
*O:*(418) 682-3636 ext.: 114

*C:*(581) 777-0050
godbo...@dimonoff.com <mailto:godbo...@dimonoff.com>

signature_893527356 <https://www.dimonoff.com/>

*dimonoff.com* <https://www.dimonoff.com/>__

1015 Avenue Wilfrid-Pelletier,

Québec, QC G1W 0C4, 4e étage

*From: *Interest <interest-boun...@qt-project.org> on behalf of Alexander Dyagilev <alervd...@gmail.com>
*Date: *Thursday, July 15, 2021 at 7:12 AM
*To: *interest@qt-project.org <interest@qt-project.org>
*Subject: *[Interest] Android AAB and shared libs?

Hello,

In my project I have 2 sub projects: application and shared library,
which application uses.

Shared library:

TARGET = logger
TEMPLATE = lib
CONFIG += qt skip_target_version_ext
DESTDIR = ../../../bin

Application:

LIBS *= -L$$OUT_PWD/$$DESTDIR -llogger

All was working fine before AAB.

Now I'm trying to compile using Qt 5.15.2 + AAB.

It generates the following error:

error: cannot find -llogger

This is because its name now is liblogger_armeabi-v7a.so.

Is there a simple way to fix this? I also need this to still be able to
build with Qt 5.12.11 APK format.

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest <https://lists.qt-project.org/listinfo/interest>


_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to