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. Linux remote debugging
Qt 6.11 is out! See what's new in the release blog

Linux remote debugging

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 1.9k 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.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    I cross compile Qt project for target linux board and want to remotely debug it on target. I setup generic linux device in Tools -> Options -> Devices in Qt Creator 3.6.0. The Test button shows the connection is OK.

    However the deployment fails (after clicking Debug button) with this message:

    12:10:50: Could not connect to host: Host unreachable
    Is the device connected and set up for network access?
    12:10:50: Deploy step failed.
    Error while building/deploying project Test (kit: a20-lime2)
    When executing step "Check for free disk space"

    I manually checked free disc space on my target linux board and there is plenty of it.

    I tried to disable Check for free disk space step, then the deployment fails with another message:

    12:18:48: Could not connect to host: Host unreachable
    Is the device connected and set up for network access?
    12:18:48: Deploy step failed.
    Error while building/deploying project Test (kit: a20-lime2)
    When executing step "Upload files via SFTP"

    Can you please help?

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

      Did you find any solution... Same problem here

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RunThiner
        wrote on last edited by
        #3

        i think you need to cross compile the gdb for target linux board and copy the gdbserver to your target linux board,
        on your target linux board : gdbserver ip:port your app
        your Qt creator on your PC: debug/attach to running debug server, input the ip:port to "Overide server channel" on the debugger widget, you can debug with remote linux board.

        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