Library shrinks during the Android build process



  • Basically, I'm compiling a library to use in an Android app. When I'm including the .so file in an app via ANDROID_EXTRA_LIBS everything works fine.

    However, I have a requirement outside of my control to checksum the library within the app when it starts. This should be easy because I compile them separately. Checksum the shared library, hardcode into the app and deploy.

    An undocumented qmake method has managed to ruin this however. During the installation of the library into the Android build, a command is run using "qmake -install qinstall -exe". Whatever this command does, it removes several hundred kb from my shared library even though it was already compiled for Android as a subproject in the same project as the app. It operates like normal, but I'd like to know what this command is doing to the shared library that shrinks it. I need this information so that I can reproduce this process when compiling so that what I compile and what is deployed to the device are the same literal file.

    Any ideas on what's going on here?


  • Lifetime Qt Champion

    Hi,

    I'd recommend bringing this questions to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.



  • So just email the same question to the mailing list email once subscribed?


  • Lifetime Qt Champion

    Yes that's it. And also, it would be nice if you would post here the outcome of this conversation.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.