"Gtk-warning: cannot open display"

996 views
Skip to first unread message

hari

unread,
Jun 4, 2014, 3:23:24 AM6/4/14
to beagl...@googlegroups.com
Hello,

I have copied opencv programs into sd card and put it on my beagleboard-xm ubuntu and ran it as root on minicom. I have already installed opencv,libwebcam,etc and compiled a sample c program-hello.c    It works well.
But when I compiled an opencv program to display an image it shows "Gtk-warning: cannot open display".
Can anyone please find a solution for this.
After solving this problem only I can go forward. Awaiting your response regarding this.

Thanks.
Hari
IMAG3371.jpg

liyaoshi

unread,
Jun 4, 2014, 5:42:55 AM6/4/14
to beagl...@googlegroups.com
#export DISPLAY=:0


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Harisanker M

unread,
Jun 19, 2014, 6:09:39 AM6/19/14
to beagl...@googlegroups.com
Hello,
I have done export DISPLAY=.0. Still the error exists.
I have a doubt isn't it possible to display the execution of beagleboard program using usb-serial cable on my laptop????
Or is it necessary to use HDMI to DVI-D cable and connect to a monitor to execute an opencv program??? Pls help me in this regard.
Awaiting your valuable response.

Thanks,
Hari


You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/Iwlv_LsZdu0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Lee Crocker

unread,
Jun 19, 2014, 11:51:56 AM6/19/14
to beagl...@googlegroups.com
Minicom (and serial terminals in general) have no means to display graphics. You need an X server for that. There are at least two ways to do that: run the X server on BB itself, displaying to its HDMI; or use the X server on your host machine by connecting to the BB with "ssh -X" instead of over serial. X protocol will happily work over a network connection.

Harisanker M

unread,
Jun 19, 2014, 12:27:54 PM6/19/14
to beagl...@googlegroups.com
Thank you very much for your reply..
Actually I am completely unaware of that knowlwdge.
If it is not a big deal................
What are the steps steps involved in ssh with x11 forwarding on BB with laptop?
Or kindly plz provide me any online links for the same.
Awating ur valuable response.

Thanks & Regards,
Hari

Lee Crocker

unread,
Jun 19, 2014, 1:33:26 PM6/19/14
to beagl...@googlegroups.com
Depending on how you have your BB connected to the network, it might be as simple as opening a terminal on your PC and typing "ssh -X ro...@beaglebone.local". If that doesn't work, you may have to play with IP addresses or hostnames and such.
Reply all
Reply to author
Forward
0 new messages