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. [SOLVED] Default QLibrary search location on Android
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Default QLibrary search location on Android

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 2.8k Views 1 Watching
  • 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
    Sh4dd0w
    wrote on last edited by
    #1

    Well as it said in the topic I need to know where QLibrary searches libraries on Android. I've tried to push my library to a lot of places and none worked. Need help :)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sh4dd0w
      wrote on last edited by
      #2

      bring up my post

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hostel
        wrote on last edited by
        #3

        From Qt doc:
        Returns a list of paths that the application will search when dynamically loading libraries.
        @
        QStringList QCoreApplication::libraryPaths () [static]
        @

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sh4dd0w
          wrote on last edited by
          #4

          Thanks a lot!
          [quote author="Hostel" date="1336302457"]From Qt doc:
          Returns a list of paths that the application will search when dynamically loading libraries.
          @
          QStringList QCoreApplication::libraryPaths () [static]
          @
          [/quote]

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sh4dd0w
            wrote on last edited by
            #5

            Okay, for everyone who'll read this thread. QLibrary on Android DOES NOT search libraries in
            @QCoreApplication::libraryPaths()@

            which returns "/data/data/%you_app's_name/files".
            Howewer it DOES search in /system/lib. Here's how I learnt it:

            @$adb shell echo $LD_LIBRARY_PATH@

            I don't know either if it's okay or if it's gonna be fixed (or may be it will have been already fixed). So check library paths twice

            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