Creating an Android library using QT

I tried to find a solution, but the only answers I found were in other ways (using AAR inside QT).

I am developing an Android application in the creator of QT. Everything is working fine. Now I need to make the core of this application a library that can be distributed by the Android developer for use in their code (for example, AAR). Can this be done? If so, how to do it and how to import it into other development tools (Android-studio / eclipse ...)?

+6
source share
1 answer

The easiest way is to compile your library with QtCreator, and then send people the generated .so file with header files. People can then link to the .so file and use the header files to call functions or instantiate classes wrapped in it.

Check out this link to learn how to create a library using QtCreator: https://wiki.qt.io/How_to_create_a_library_with_Qt_and_use_it_in_an_application

Note that you will need to compile the goals armv7and x86send both .so files if these two goals are needed.

+1
source

Source: https://habr.com/ru/post/1017162/


All Articles