Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Linux remote debugging

    Mobile and Embedded
    3
    3
    1490
    Loading More Posts
    • 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
      MartinD last edited by

      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 Reply Quote 0
      • S
        Sreemadhav last edited by

        Did you find any solution... Same problem here

        1 Reply Last reply Reply Quote 0
        • R
          RunThiner last edited by

          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 Reply Quote 0
          • First post
            Last post