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. Debugging release build on Android
Forum Updated to NodeBB v4.3 + New Features

Debugging release build on Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 602 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.
  • X Offline
    X Offline
    xentrax
    wrote on 17 Oct 2016, 18:51 last edited by xentrax
    #1

    Hi, All!

    When building a release build, libgdbserver.so (also known as gdbserver) is not put into libs folder, and thus not included to apk. So, debugging not possible.

    If I use ANDROID_EXTRA_LIBS to force libgdbserver.so inclusion, then my newly created sample application just crashes upon startup.

    I wonder, what is the proper way to add gdbserver into release binary and make it work?

    The final goal is to debug a bug that happens only in the release build. It's enough to make debugger work on any host: Mac, Xubuntu, Windows.

    Update: Qt version prior to 5.7.0 are not affected, both files gdbserver and libgdbserver.so are copied by androiddeployqt.exe from NDK into libs\armeabi-v7a. Adding "gdbserver" as an extra lib does not work because Qt wants it to be file staring with lib and ending with so.

    Hence, the updated question is there any way to add extra parameters to androiddeployqt.exe? Specifically --gdbServer

    1 Reply Last reply
    1
    • T Offline
      T Offline
      tekojo
      wrote on 18 Oct 2016, 07:10 last edited by
      #2

      Hi,
      I would actually ask that on the interest mailing list http://lists.qt-project.org/mailman/listinfo/interest or maybe even on development http://lists.qt-project.org/mailman/listinfo/development

      And when you find out, please post here too :)

      1 Reply Last reply
      1

      1/2

      17 Oct 2016, 18:51

      • Login

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