Re: Running X11 tasks from Xcode ==> the solution!
Re: Running X11 tasks from Xcode ==> the solution!
- Subject: Re: Running X11 tasks from Xcode ==> the solution!
- From: email@hidden
- Date: Mon, 23 Feb 2004 00:03:53 -0600
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.
I did finally get it to work though. In the Executable panel for your
X11 task, add a "DISPLAY" environment variable with a value of ":0".
That will allow you to launch the Xwindows task with the Run command,
and allow you access to the debuggers (or at least Sample, haven't
tried the others yet). It doesn't transfer the environment variable
over from the ,cshrc file when running tcsh; that may work with other
shells, but I can't say.
Probably a silly thing to get stuck on, but at least it works now!
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
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.