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. How add .so lib on Qt for Android using CMake
Forum Updated to NodeBB v4.3 + New Features

How add .so lib on Qt for Android using CMake

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 478 Views
  • 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.
  • S Offline
    S Offline
    software.dev992
    wrote on last edited by software.dev992
    #1

    Hi,
    I have a project that I build for android using Qt 5.12.9. This project uses CMake 3.16.2 and of course androiddeployqt. I don't see any gradle script in my project tree so I think that is all automated by androiddeployqt.
    I added a .so library using CMake to my project: after the addition the projects builds correctly without errors but I noticed a runtime error regarding the .so library mentioned above: then I unpacked the .apk file and discovered that the .so library in discussion is not placed in the libs folder of the apk, then at runtime the application raises an exception.
    Can you suggest me how I can instruct CMake or androiddeployqt to place a specific .so library (which is already used for the build process by CMake) inside the libs folder of the apk?

    Thanks

    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