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