gtk++ use problem on a20 lime

Started by rgiovoni, June 05, 2017, 03:30:16 PM

Previous topic - Next topic

rgiovoni

Hi all.
I have a problem to run a simple program using
gtk++ libraries.

I have connected and installed a 4.3 display to
my olinuxino a20 lime board following instructions
in "How to connect display to a Lime board" application note
at https://www.olimex.com/wiki.

It run wery well.

The problem arrise when i run a simple program
that using gtk++ libraries (also installed on my
a20 board and into my cross compiler on linux dextop pc).

I start my program from a shell into putty terminal.

I obtain the 2 following messages:

-Unable to init server: Could not connect: Connection refused

-Gtk-WARNING **: cannot open display:

I have sent echo:$DISPLAY but no display seem programmed.
Than i have forced the value to 1 using the following command:

export DISPLAY=":1"

but when run again my program the
problem above described continues to persist.

Moreover after this setting action a following message was added:
-WARNING **:Could not open X display

Someone can help me?

Thanks in advance for help.

Robert

Mark13

>>cannot open display
you need to have a X-server //or similar running
to start your GTK app

thats the std message for non-graphical terminals,
like remote logins are