Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Linux remote debugging



  • 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?



  • Did you find any solution... Same problem here



  • 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.


Log in to reply