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
QtWS25 Last Chance

Using user created libraries in a project

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 772 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.
  • yuvaramY Offline
    yuvaramY Offline
    yuvaram
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      • yuvaramY Offline
        yuvaramY Offline
        yuvaram
        wrote on last edited by yuvaram
        #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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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

          • Login

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