Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
GTK DISPLAY Error in GUI Application
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian Mallett  
View profile  
 More options Sep 29 2012, 2:36 pm
From: Ian Mallett <geometr...@gmail.com>
Date: Sat, 29 Sep 2012 12:36:27 -0600
Local: Sat, Sep 29 2012 2:36 pm
Subject: GTK DISPLAY Error in GUI Application

Hi,

I have written a GUI program (developed on Windows), and am working on
cross-platform testing. When running from a console on Ubuntu 12.04, I get
the following output
No protocol specified
No protocol specified
Error: Unable to initialize gtk, is DISPLAY set properly?

"echo $DISPLAY" returns ":0".

When running from an explorer window, no window opens.

Help? Thanks,
Ian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vadim Zeitlin  
View profile  
 More options Sep 29 2012, 4:38 pm
From: Vadim Zeitlin <va...@wxwidgets.org>
Date: Sat, 29 Sep 2012 22:38:28 +0200
Local: Sat, Sep 29 2012 4:38 pm
Subject: Re: GTK DISPLAY Error in GUI Application

On Sat, 29 Sep 2012 12:36:27 -0600 Ian Mallett wrote:

IM> I have written a GUI program (developed on Windows), and am working on
IM> cross-platform testing. When running from a console on Ubuntu 12.04, I get
IM> the following output
IM> No protocol specified
IM> No protocol specified

 I have no idea where do these messages come from but they don't come from
wxWidgets. Perhaps you're using some unusual GTK+ version?

IM> Error: Unable to initialize gtk, is DISPLAY set properly?
IM>
IM> "echo $DISPLAY" returns ":0".

 Is it exported? I.e. what does "env|fgrep -a DISPLAY" say?

 Also do the other X11 applications run from this command line? E.g.
xclock?

 Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Mallett  
View profile  
 More options Sep 29 2012, 6:20 pm
From: Ian Mallett <geometr...@gmail.com>
Date: Sat, 29 Sep 2012 16:20:31 -0600
Local: Sat, Sep 29 2012 6:20 pm
Subject: Re: GTK DISPLAY Error in GUI Application

On Sat, Sep 29, 2012 at 2:38 PM, Vadim Zeitlin <va...@wxwidgets.org> wrote:
> On Sat, 29 Sep 2012 12:36:27 -0600 Ian Mallett wrote:

> IM> I have written a GUI program (developed on Windows), and am working on
> IM> cross-platform testing. When running from a console on Ubuntu 12.04, I
> get
> IM> the following output
> IM> No protocol specified
> IM> No protocol specified

>  I have no idea where do these messages come from but they don't come from
> wxWidgets. Perhaps you're using some unusual GTK+ version?

I have no idea. How is GTK+ related to wxWidgets?

IM> Error: Unable to initialize gtk, is DISPLAY set properly?

> IM>
> IM> "echo $DISPLAY" returns ":0".

>  Is it exported?

I haven't set it myself, if that's what you mean.

> I.e. what does "env|fgrep -a DISPLAY" say?

DISPLAY=:0

 Also do the other X11 applications run from this command line? E.g.

> xclock?

No. xclock in particular gives identical output.

>  Regards,
> VZ

Thanks,
Ian

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerald Brandt  
View profile  
 More options Sep 29 2012, 6:36 pm
From: Gerald Brandt <g...@majentis.com>
Date: Sat, 29 Sep 2012 17:37:13 -0500 (CDT)
Local: Sat, Sep 29 2012 6:37 pm
Subject: Re: GTK DISPLAY Error in GUI Application

Are you trying to run the app as a different user than the one that logged into X?

Gerald


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Mallett  
View profile  
 More options Sep 29 2012, 7:23 pm
From: Ian Mallett <geometr...@gmail.com>
Date: Sat, 29 Sep 2012 17:22:59 -0600
Local: Sat, Sep 29 2012 7:22 pm
Subject: Re: GTK DISPLAY Error in GUI Application

On Sat, Sep 29, 2012 at 4:37 PM, Gerald Brandt <g...@majentis.com> wrote:
> Are you trying to run the app as a different user than the one that logged
> into X?

Not certain. I am running the application in a standard Ubuntu terminal
(I'm not SSHed in or anything).

I logged in to Ubuntu using my standard username and password, and just
started the terminal. The terminal does not (and cannot) have root access.

 Gerald

Ian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vadim Zeitlin  
View profile  
 More options Sep 29 2012, 8:19 pm
From: Vadim Zeitlin <va...@wxwidgets.org>
Date: Sun, 30 Sep 2012 02:19:01 +0200
Local: Sat, Sep 29 2012 8:19 pm
Subject: Re[2]: GTK DISPLAY Error in GUI Application

On Sat, 29 Sep 2012 17:22:59 -0600 Ian Mallett wrote:

IM> On Sat, Sep 29, 2012 at 4:37 PM, Gerald Brandt <g...@majentis.com> wrote:
IM>
IM> > Are you trying to run the app as a different user than the one that logged
IM> > into X?
IM> >
IM> Not certain. I am running the application in a standard Ubuntu terminal
IM> (I'm not SSHed in or anything).

 If so running xclock should definitely work. And once it works, running wx
programs should work too. But this is not a wxWidgets problem at all,
something is seriously wrong on your system if you can't run any X
application. You probably should ask for help in Ubuntu forums because I
really have no idea about could be causing it, especially if you just are
on a normal Ubuntu installation.

 Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Mallett  
View profile  
 More options Oct 4 2012, 9:25 am
From: Ian Mallett <geometr...@gmail.com>
Date: Thu, 4 Oct 2012 07:25:16 -0600
Local: Thurs, Oct 4 2012 9:25 am
Subject: Re: Re[2]: GTK DISPLAY Error in GUI Application

On Sat, Sep 29, 2012 at 6:19 PM, Vadim Zeitlin <va...@wxwidgets.org> wrote:
> this is not a wxWidgets problem at all,
> something is seriously wrong on your system if you can't run any X
> application.

Alright--thanks!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »