Re: cygwin gtk+ eclipse on windows Gtk-WARNING cannot open display

2010-06-26 Thread newusergtk+

I'm forced to use cygwin for work so I have no choice.
I solved the problem.
Anyway I thank you for your advice.
bye


Tor Lillqvist wrote:
 
 Hello, i installed cygwin, gtk+(available with cygwin) and eclipse on
 Windows xp.
  Gtk-WARNING **: cannot open display:
 
 Are you aware that the GTK+ for Cygwin is built with the X11 backend,
 i.e. software that uses it requires an X server (also know as
 display)? (Either running on the same machine, or remotely.) (Also
 note that Cygwin is really a separate Unix-style operating system that
 just happens to run on top of Windows.)
 
 Is that really what you want? If not, forget GTK+ on Cygwin and just
 use GTK+ on Windows instead. Be very careful not to confuse and mix
 Cygwin libraries and Windows libraries when building something.
 
 Is the Eclipse you are using also a Cygwin one?
 
 If your intention is not to build software that runs on Cygwin and
 requires an X display, I would suggest you avoid Cygwin completely.
 
 Instead just install the MinGW compiler, and use that from Eclipse.
 For GTK+ on Windows, the simplest is to download the bundle from
 http://www.gtk.org/download-windows.html and then run pkg-config to
 get the appropriate compiler flags to pass the compiler from Eclipse.
 I can't help you more with that, I don't use Eclipse.
 
 In fact, I would suggest that you first learn how to build GTK+
 software directly from the command line without letting Eclipse hide
 what is really happening... but this is just my personal opinion. As a
 command-line environment I then suggest using MSYS and its bash shell.
 
 MinGW and MSYS are available from www.mingw.org.
 
 --tml
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 
 

-- 
View this message in context: 
http://old.nabble.com/cygwin-gtk%2B--eclipse-on-windows-Gtk-WARNING-cannot-open-display-tp28949244p29000102.html
Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


cygwin gtk+ eclipse on windows Gtk-WARNING cannot open display

2010-06-21 Thread newusergtk+

Hello, i installed cygwin, gtk+(available with cygwin) and eclipse on Windows
xp.

I'm trying to run a simple gtk+ application available on the site
www.gtk.org .

I have been able to compile my gtk+ program using Eclipse without errors but
when I run it the console says Gtk-WARNING **: cannot open display: and
hence my application does not display. 
Can anyone point me in the right direction?

Thanks very much,
Loredana:D 
-- 
View this message in context: 
http://old.nabble.com/cygwin-gtk%2B--eclipse-on-windows-Gtk-WARNING-cannot-open-display-tp28949244p28949244.html
Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: cygwin gtk+ eclipse on windows Gtk-WARNING cannot open display

2010-06-21 Thread Tor Lillqvist
 Hello, i installed cygwin, gtk+(available with cygwin) and eclipse on Windows 
 xp.
  Gtk-WARNING **: cannot open display:

Are you aware that the GTK+ for Cygwin is built with the X11 backend,
i.e. software that uses it requires an X server (also know as
display)? (Either running on the same machine, or remotely.) (Also
note that Cygwin is really a separate Unix-style operating system that
just happens to run on top of Windows.)

Is that really what you want? If not, forget GTK+ on Cygwin and just
use GTK+ on Windows instead. Be very careful not to confuse and mix
Cygwin libraries and Windows libraries when building something.

Is the Eclipse you are using also a Cygwin one?

If your intention is not to build software that runs on Cygwin and
requires an X display, I would suggest you avoid Cygwin completely.

Instead just install the MinGW compiler, and use that from Eclipse.
For GTK+ on Windows, the simplest is to download the bundle from
http://www.gtk.org/download-windows.html and then run pkg-config to
get the appropriate compiler flags to pass the compiler from Eclipse.
I can't help you more with that, I don't use Eclipse.

In fact, I would suggest that you first learn how to build GTK+
software directly from the command line without letting Eclipse hide
what is really happening... but this is just my personal opinion. As a
command-line environment I then suggest using MSYS and its bash shell.

MinGW and MSYS are available from www.mingw.org.

--tml
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Gtk-warning: cannot open display

2001-07-11 Thread Johan N-P

 Have you tried xhost + ?

Yes, I tried that, both as root and as my normal user. It doesn't work though :/

Thanks anyway,
Johan

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Gtk-warning: cannot open display

2001-07-11 Thread Jean-Christophe Berthon

did you try to open another term and logon as root (for example, or even try
it with your own login name) and then type this:
xhost +

then try to run your program. Is it still showing the same problem?


Best regards,
---
Jean-Christophe Berthon



- Original Message -
From: Johan N-P [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 1:07 AM
Subject: Gtk-warning: cannot open display


 Hi all,

 I have a really weird problem. Until yesterday my gtk program worked
 fine, but suddenly it stopped working. Now it  just tells me
 gtk-warning: cannot open display when I try to run it.
 $DISPLAY is :0.0 as it should be. And yes, I'm running it as the user
 who started X.

 When I compile and run other gtk  programs they work fine, it's just my
 program that behaves like this. I stepped through it in gdb to see where
 it happens, and I found that it's always gtk_init that gives this error
 without any apparent reason (there is absolutely nothing wrong with argc
 and argv or the way I supply them).

 What could tbe the reason for this?

 Johan


 ___
 gtk-list mailing list
 [EMAIL PROTECTED]
 http://mail.gnome.org/mailman/listinfo/gtk-list


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list