Display error in Qt5
-
I have cross compiled Qt5 and Beaglebone black using linaro toolchain. Every thing went well but when i am running helloworld program I am getting the following error? how to get rid of this error?
stdin: is not a tty
No protocol specified
QXcbConnection: Could not connect to display :0.0
bash: line 1: 2409 Aborted DISPLAY=':0.0' /root/hi
Application finished with exit code 134. -
@bharat446 Do you have a X server running on your Beaglebone?
-
@jsulm Yes my beaglebone has X server running.
-
@bharat446 said in Display error in qt5:
@jsulm Yes my beaglebone has X server running.
Can you tell me how xserver will help me in solving this error.
-
@bharat446 Your app is apparently not able to connect to X server:
QXcbConnection: Could not connect to display :0.0 bash: line 1: 2409 Aborted DISPLAY=':0.0' /root/hi
So, do you have a running UI? Are other graphics applications running?
-
@jsulm First of all sorry for the late reply. No other graphics applications are running . Every app is giving the same error. however I have interfaced LCD cape to Beaglebone black and have run helloworld program it is running fine and a simple helloworld application is showing. when i try to run programs through QT I am facing this error.
-
@bharat446 said in Display error in Qt5:
@jsulm First of all sorry for the late reply. No other graphics applications are running . Every app is giving the same error. however I have interfaced LCD cape to Beaglebone black and have run helloworld program it is running fine and a simple helloworld application is showing. when i try to run programs through QT I am facing this error.
After doing some changes using xauthority. The output in terminal changed from QXcbConnection: Could not connect to display :0.0 to this.
file:///home/cse/Pictures/Screenshot%20from%202016-12-07%2016-10-20.png
I am attaching screenshot of QT file along with error.
file:///home/cse/Pictures/Screenshot%20from%202016-12-07%2016-12-18.png
-
@bharat446 Sorry, I cannot see the pictures: attaching pictures does not work properly in this forum.
-
In terminal
After doing some changes using xauthority. The output in terminal changed from QXcbConnection: Could not connect to display :0.0 to this.The X11 connection broke: No error (code 0)
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server "localhost:10.0"
after 16 requests (16 known processed) with 0 events remaining.In QT nothing has changed same error is presant.
-
@bharat446 Sorry, I don't know how to get X server running on Beaglebone.