Results 1 to 2 of 2

Thread: How to add depenency files to qt android ?

  1. #1
    Join Date
    Mar 2011
    Posts
    118
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to add depenency files to qt android ?

    Hi Everyone,

    I want to add a static library(.a file) to my android project.
    I tried to add using "ANDROID_EXTRA_LIBS" qmake variable but it is not working (Error: libtest.a must begin with "lib" and end with the suffix ".so").
    I also tried to add using "ANDROID_PACKAGE_SOURCE_DIR" but the library is copied only to the output libs directory not into apk file.

    Can anyone tell me how to add a .a file into a apk ?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,183
    Thanks
    36
    Thanked 1,488 Times in 1,441 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to add depenency files to qt android ?

    A static library is linked at build time, the Android package only contains the result of that linking stage.

    So you only have make sure it is found during the build, i.e. path and name added to the LIBS variable in your .pro file.

    Cheers,
    _

Similar Threads

  1. Replies: 0
    Last Post: 30th May 2015, 10:45
  2. Replies: 4
    Last Post: 10th July 2014, 16:22
  3. Android ARM vs Android x86 in qmake .pro file
    By sedi in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2014, 09:48
  4. How do you make android applications display correctly on android phone?
    By Cyrebo in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 17th August 2013, 08:31
  5. Android Installation - how and where to add/store changing user files?
    By sedi in forum Installation and Deployment
    Replies: 2
    Last Post: 13th June 2012, 17:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.