Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Extra lib in Android with Qt 5.15.0
Qt 6.11 is out! See what's new in the release blog

Extra lib in Android with Qt 5.15.0

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 839 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • alemioA Offline
    alemioA Offline
    alemio
    wrote on last edited by alemio
    #1

    Hi, I added an extra lib with Qt 5.14.2 using ANDROID_EXTRA_LIBS and that works fine.
    Now I'm trying to port porting the project on Qt 5.15.0. The library is not copied on the device. I think that the problem is because the library is copied in the wrong directory instead of armeabi-v7a folder

    3badf32a-be17-4487-b1cc-83fd9a3eca92-immagine.png
    How can fix that?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Instead of ANDROID_EXTRA_LIBS, use the android/libs. Copy the .so manually, make sure to keep the proper subdirectory names for architectures. It's the easiest this way - androiddeployqt just copies the whole dir into the APK.

      You can still use ANDROID_EXTRA_LIBS, but you need to define it separately per architecture in your .pro file - it's a mess.

      (Z(:^

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved