[Interest] Android AAB and shared libs?
ekke
ekke at ekkes-corner.org
Sun Jul 18 13:33:27 CEST 2021
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
>> godboutj at dimonoff.com <mailto:godboutj at 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-bounces at qt-project.org> on behalf of
>> Alexander Dyagilev <alervdvcw at gmail.com>
>> *Date: *Thursday, July 15, 2021 at 7:12 AM
>> *To: *interest at qt-project.org <interest at 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 at qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>> <https://lists.qt-project.org/listinfo/interest>
>>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210718/dc86892b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 13927 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210718/dc86892b/attachment.png>
More information about the Interest
mailing list