delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/20/19:49:31

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B57A498.8030407@users.sourceforge.net>
Date: Wed, 20 Jan 2010 18:49:28 -0600
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
Reply-To: cygwin-xfree AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: cygwin-xfree AT cygwin DOT com
CC: cygwin AT cygwin DOT com
Subject: Re: Gtk+ & cygwin problem
References: <A5A0DBC245144DC0986FC0878A49BE86 AT DadPC>
In-Reply-To: <A5A0DBC245144DC0986FC0878A49BE86@DadPC>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 20/01/2010 16:36, Richard Dickinson wrote:
> Gtk-WARNING **: cannot open display:

Some googling would have shown you what this means.  You need to be 
running an X server and set the DISPLAY variable in order to use GTK+ 
(or any other X11 GUI).

This being a Cygwin/X question, it really belongs on the Cygwin/X list; 
redirecting accordingly.

> And on my Vista machine I have gtkmm for Windows setup from which I can run
> Gtk-demo from my Vista cmd prompt

GTKmm for Windows is just that -- for WINDOWS.  Cygwin's GTK+ is a 
*NIX/X11 version and needs a Cygwin-built GTKmm, which is available from 
Cygwin Ports.

> (but cannot compile gtk+ code with from Vista cmd
> prompt as I get 'access denied' error message?!).

'/usr/bin/gcc' is a symlink, which Windows itself doesn't understand. 
Cygwin commands are generally meant to be run from a Cygwin environment 
(in this case, bash, or another shell of your choice).

 > I have cygwin/bin in my path&  gtkmm/bin also.

This is asking for problems.  You're better off keeping extra Win32 
components out of your Cygwin PATH.


Yaakov
Cygwin/X

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019