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. [Qt][Android]How can I step into and debug my custom library(*.so)
Forum Updated to NodeBB v4.3 + New Features

[Qt][Android]How can I step into and debug my custom library(*.so)

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 4 Posters 3.7k 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
    shob
    wrote on last edited by
    #1

    Hi All,

    I am using Qt5.1.1 for android on windows 7. I have made a simple Qt app that dynamically links to a Qt library. I have followed the steps listed in http://qt-project.org/forums/viewthread/29592 and I am able to bundle my custom library in an apk and deploy it to a device.

    I am attempting to debug my App after deploying. I am able to set breakpoints and debug only my main application. But I am not able to step into and debug the library functions when I call them from the App.

    I notice in my app's build environment LD_LIBRARY_PATH is set to /data/data/org.qtproject.example.Android1/lib.

    I would appreciate any help on this.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZeAL0T
      wrote on last edited by
      #2

      I have the same problem for dynamic libraries. I move them to static ones by adding CONFIG+=staticlib in *pro file, so debug become available. But this is very uncomfortable.

      Does anybody know a better solution for the libraries debugging on android?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lroels
        wrote on last edited by
        #3

        I have managed to set breakpoints in shared libs by setting the
        solib-search-path ( open QtCreator -> Window/Views/Debugger log and enter set solib-search-path <path to the shared libs> ) and then set the breakpoints. This works, however when the application crashes I don't get any stack trace. If anyone knows how to do this, please let us know.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          alexey.petrenko
          wrote on last edited by
          #4

          Does anyone has a solid instruction about how to do this?
          Two years have passed, Qt for Android is pretty popular now, I am sure someone figured it out.

          Thanks in advance!

          1 Reply Last reply
          0
          • A Offline
            A Offline
            alexey.petrenko
            wrote on last edited by
            #5

            See the answer here: http://stackoverflow.com/q/31076312/1645784

            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