Can't Run Qt Project on Raspberry Pi

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

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

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

    Andy

    • This topic was modified 3 years, 8 months ago by AndyFraser.
    #30319
    support
    Keymaster

    Hi,

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

    #30322
    AndyFraser
    Participant

    Hi,

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

    Thanks for your help.

    Andy

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.