Can't Run Qt Project on Raspberry Pi

Sysprogs forums Forums VisualGDB Can't Run Qt Project on Raspberry Pi

This topic contains 2 replies, has 2 voices, and was last updated by  AndyFraser 1 week, 3 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #30317


    Have setup a Qt 5 solution using VisualGDB with SSH connection to my Raspberry Pi.

    If I build and debug the simple project, it runs locally on my Windows machine but get the following in the VisualGDB output window.

    Process /tmp/AnotherQt created; pid = 2537
    Listening on port 2000
    Remote debugging from host
    failed to get the current screen resources
    qt.qpa.xcb: QXcbConnection: XCB error: 170 (Unknown), sequence: 174, resource id: 90, major code: 146 (Unknown), minor code: 20

    And it fails to run on my RPi.

    Any idea what I am doing wrong ?


    • This topic was modified 1 week, 5 days ago by  AndyFraser.



    This looks like an incompatibility between some feature of the Qt framework and XMing (the tool for showing Linux X11 GUI on Windows). You can work around it by manually installing and launching vcxsrv a more modern build of Xming. If it doesn’t help, please try switching your project to show the GUI on the Raspberry Pi itself (via VisualGDB Project Properties -> Debug Settings).




    I installed vcxsrv but it does the same thing however, enabling running on the Pi itself worked fine.

    Thanks for your help.


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.