Raspberry pi 3 error cannot connect to X server :0

Sysprogs forums Forums VisualGDB Raspberry pi 3 error cannot connect to X server :0

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21712
    Softtoon
    Participant

    Hello

    I have downloaded and installed the trail version of Visual GDB and created my first QT4 project. Without adding aditional code i run the project and i get the “Hello World” window.

    When i select “Show on remote computer DISPLAY:0 ” in the debug settings of the VisualGDB project properties a get this error :

    Process /Vgdb/LinuxProject6 created; pid = 1798
    Listening on port 2000
    Remote debugging from host 192.168.2.13
    LinuxProject6: cannot connect to X server :0

    Child exited with status 1

     

    I have a verry limited knowledge of linux but what is the problem here ?

     

    thanks in advance

     

     

     

    #21715
    support
    Keymaster

    Hi,

    Yes, the X server might be running on a different port. Please try starting a GUI terminal (e.g. xterm) via the USB keyboard/HDMI port on Raspberry Pi, and type “echo $DISPLAY” to see the display number used by your board. If the number is not 0, simply copy it to the corresponding field in VisualGDB Project Properties.

    Please also ensure that the user name used in VisualGDB to connect to your Raspberry Pi matches the user account running via the HDMI port (normally ‘pi’).

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