Qt Creator/Android and external libraries
-
wrote on 4 Jul 2013, 15:42 last edited by
Is there a way to add external libs in the Package Configurations(Project settings) section?
Even if I modify libs.xml manually Qt Creator overrides that file with its own data. -
wrote on 4 Jul 2013, 18:09 last edited by
I have found a workaround.
You should add the following to your libs.xml
@<array name="your_any_name">
<item>library_name</item>
</array>@and then replace the following line in your manifest:
@<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>@
with
@<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/your_any_name"/>@If somebody knows the better way it would be cool to hear it.
-
wrote on 15 Jul 2013, 08:50 last edited by
Thanks for the workaround, now i can add my libraries!
-
wrote on 13 Jul 2015, 14:43 last edited by
hey I have problem .I got what you have said above .But I don't understand actually in which folder should I place my library.I have created static library.And how to I give that path in .pro file .Local path is accepted when I run it on linux dekstop but path gives error when i try to build it for android.please help