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. Using user created libraries in a project

Using user created libraries in a project

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 775 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.
  • Y Offline
    Y Offline
    yuvaram
    wrote on 8 Sept 2016, 13:21 last edited by
    #1

    Hi,
    Created a sample library project using project1, Created project1 library is added into project2 using "add library" functionality and deployed in android mobile. But program is getting crashed.
    Is there any special method to adding libraries for android environment.

    Yuvaram Aligeti
    Embedded Qt Developer
    : )

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Sept 2016, 20:07 last edited by
      #2

      Hi,

      "crashed" is a bit vague. How did it crash ? Was the library not found or do you have a bug in it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yuvaram
        wrote on 9 Sept 2016, 08:50 last edited by yuvaram 9 Sept 2016, 08:52
        #3

        In project2, i created LIB folder and placed libproject1.so, added into .pro file using add external library.
        When it is running in android its unable to find lib path i think.
        For same process in other OS with Linux i used to place my libraries in /usr/lib/.
        Where should it be placed in Android. Is it part of .APK file?

        Yuvaram Aligeti
        Embedded Qt Developer
        : )

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 9 Sept 2016, 21:01 last edited by
          #4

          It should be part of the APK.

          Since it's a project specific library, you should rather put in some place fixed in the build folder rather than on your system. It would simplify development and debugging.

          For android, the library needs to be part of the package. If it's not detected automatically for you, you'll have to add it by hand. Go in the Project panel to modify the configuration as needed.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          8 Sept 2016, 13:21

          • Login

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