• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Running X11 tasks from Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running X11 tasks from Xcode


  • Subject: Re: Running X11 tasks from Xcode
  • From: Andrew Reynolds <email@hidden>
  • Date: Mon, 23 Feb 2004 01:20:29 -0500

Hi Reed,

I don't use localhost it is the default and it is better to stick with the default. The actual expanded display name is tcp/localhost:0.0 (if I remember correctly). The fields are: protocol/hostname:display-number.screen-number. The shortest allowed display specification is ":0".

There are times when a terminal is run and the user's .bashrc, .login, .profile, .tcshrc or whatever start-up files your shell requires is NOT executed. I do not know what options are passed to the terminal when it is launched. You may be able to change them in a preference panel. Maybe an Xcode expert can say for certain. If the terminal is interactive (which I doubt) you can type:

$ echo $DISPLAY

to see what the DISPLAY environment variable is set to.

If this behavior persists file a bug report.

Drew

On Feb 23, 2004, at 12:43 AM, Reed Riddle wrote:

Hi Drew,

That didn't do it for me.  I'm running tcsh, but adding

setenv DISPLAY "localhost:0.0"

didn't work. It does allow me to run X11 tasks from the Terminal, which is a neat trick I didn't know about, but it won't bring up my Xwindows task from Xcode if I try to run it. If I run the debugger (GDB), then it does bring it up; GDB does a launch from the command line, and that seems to work for some reason. This should be good enough for what I need though...I guess it's time I learned how to use a debugger. :) I'll have to play some more to see if I can convince it to run the Performance Tools.

Thanks!

					Reed


On Feb 22, 2004, at 10:27 PM, Andrew Reynolds wrote:

Forgot to replay to the mailing list. Others might want to know how to
do this.

Drew

Begin forwarded message:

From: Andrew Reynolds <email@hidden>
Date: February 22, 2004 11:24:37 PM EST
To: email@hidden
Subject: Re: Running X11 tasks from Xcode

Hi Reed,

Put the following line in your .bashrc file:

export DISPLAY=:0

This will tell terminal.app that you are using the Xserver on your
system.

Drew

On Feb 22, 2004, at 10:33 PM, email@hidden wrote:

Howdy folks,

I have an Xwindows tool that I am writing, and I really want to use
Xcode to work on it (since it seems so sweet and has nice debugging
tools). I have imported the code, and it compiles just fine through
the Makefile I created (I have it set to treat it as a GNU make
project). When I try to run it, it fails, and the terminal that pops
up says that the tool can't find an Xserver. X11 is running, and the
tool runs just fine if I run it from the command line or double click
it in the Finder.


Does anyone know what I need to do to convince Xcode to run my
program through X11?  I looked in the archives, and couldn't find an
answer.  Any help is appreciated.  Thanks!

					Reed

-------------------------------------------------------------------- --
Dr. Reed L. Riddle
Assistant Director of Whole Earth Telescope Operations
Iowa State University Department of Physics & Astronomy
Email: email@hidden


"This life has been a test. If it had been an actual life, you would
have received actual instructions on where to go and what to do."
-- Angela Chase, "My so-called life"
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.



---------------------------------------------------------------------- Dr. Reed L. Riddle Associate Director of Whole Earth Telescope Operations Iowa State University Department of Physics & Astronomy Email: email@hidden Homepage: http://wet.physics.iastate.edu/~riddle/

"This life has been a test.  If it had been an actual life, you would
 have received actual instructions on where to go and what to do."
                                -- Angela Chase, "My so-called life"
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Running X11 tasks from Xcode
      • From: jean-françois gauthier <email@hidden>
References: 
 >Re: Running X11 tasks from Xcode (From: Andrew Reynolds <email@hidden>)

  • Prev by Date: Re: Running X11 tasks from Xcode ==> the solution!
  • Next by Date: CVS Fixes
  • Previous by thread: Re: Running X11 tasks from Xcode ==> the solution!
  • Next by thread: Re: Running X11 tasks from Xcode
  • Index(es):
    • Date
    • Thread