[Q] DDD/XPhoton

I recently downloaded DDD and XFree86 (with ‘XPhoton’) from the
contributed software directory. I’m having the following problem when I
try to run ddd:

ddd

Error: Can’t open display: 127.1:0

I naively tried to do this without starting X, so I’m not too surprised
that it failed. I suppose I have to run an X server for this to work.
How do I do this with Photon? Is ‘XPhoton’ an X server that runs in
Photon? If so, how do I configure and run it? Or do I need to run X
instead of Photon for ddd to work? I’m just not sure how these pieces
are supposed to fit together.

Any advice on getting up and running with ddd will be much
appreciated…

TIA,

  • Dave

David Wolfe wrote:

I naively tried to do this without starting X, so I’m not too surprised
that it failed. I suppose I have to run an X server for this to work.

Yes.

How do I do this with Photon? Is ‘XPhoton’ an X server that runs in
Photon?

Yup. XPhoton is an X server that runs in Photon.

If so, how do I configure and run it?

XPhoton &

Works for me.

Or do I need to run X
instead of Photon for ddd to work?

You could, but this setup would suck if you were trying to debug a
Photon application :slight_smile:

“Rennie Allen” <rallen@csical.com> wrote in message
news:3D9822C5.9050701@csical.com

David Wolfe wrote:

I naively tried to do this without starting X, so I’m not too
surprised that it failed. I suppose I have to run an X server for
this to work.

Yes.

How do I do this with Photon? Is ‘XPhoton’ an X server that runs in
Photon?

Yup. XPhoton is an X server that runs in Photon.

If so, how do I configure and run it?

XPhoton &

Works for me.

D’oh! I didn’t have the path to XPhoton in my PATH. (I didn’t realize
QNX put it in /opt/X11R6/bin.) Works great now–thanks a million. I
feel like I’m ‘home’ again now that I can use ddd… :sunglasses:

  • Dave

“Rennie Allen” <rallen@csical.com> wrote in message
news:3D9822C5.9050701@csical.com

David Wolfe wrote:

I naively tried to do this without starting X, so I’m not too surprised
that it failed. I suppose I have to run an X server for this to work.

Yes.

How do I do this with Photon? Is ‘XPhoton’ an X server that runs in
Photon?

Yup. XPhoton is an X server that runs in Photon.

If so, how do I configure and run it?

XPhoton &

Works for me.

Or do I need to run X
instead of Photon for ddd to work?

You could, but this setup would suck if you were trying to debug a
Photon application > :slight_smile:

ln -s /opt/X11R6 /usr/X11R6
ln -s /opt/X11R6/bin/XPhoton /usr/X11R6/bin/Xphoton

works even better for me :slight_smile:
as the X server is auto-launched for me this way and I don’t have to start
it in a pterm :wink: