Forum Topic - FINALLY: xphoton for QNX 6.4.1 alpha - please test!:
   
FINALLY: xphoton for QNX 6.4.1 alpha - please test!  
Hello there,

finally....! I got a running version of xphoton for modular-xorg-server. It took me some time to create the patch. Be 
warned, this patch will kill your old xorg installation (if you had one running yet).

1. cd into your modular-xorg-server directory (e.g. cd /usr/ports/x11/modular-xorg-server)

2. "bmake clean" first, because I needed to change some things on the build environment

3. Delete your old Xorg installation if you have one (e.g. pkg_delete xorg-server-1.6.3)

4. Download the attachment and apply it on the directory (patch -p0 < xphoton-for-modular-xorg-server.patch)

5. bmake

6. bmake install

7. Run with Xphoton - the rootless X server will now run with many debug messages

8. Start xpdf in another console (tested), xmore (tested), xcalc or some other basic X applications

Have fun and please test it. The patch and the code are party hacked down but I did not have much more time. I hope 
he're some interested people :-)

Best regards,
André Wösten
Attachment: Text xphoton-for-modular-xorg-server.patch 98.32 KB
Re: FINALLY: xphoton for QNX 6.4.1 alpha - please test!  
I compiled Xphoton without problems.
And so:
# ./Xphoton
(nto.c                | 00317 | OsVendorInit): >>>
Xphoton starting:
X.Org X Server 1.6.3
Build Date: 20100405
Display mode: Rootless Photon
(nto.c                | 00278 | InitOutput ): InitOutput(816afc0,1...)
[dix] Could not init font path element /usr/pkg/lib/X11/fonts/OTF, removing from list!
(photonCursor.c       | 00056 | PhotonRealizeCursor): >>>
(photonCursor.c       | 00056 | PhotonRealizeCursor): >>>
(photonCursor.c       | 00039 | PhotonCrossScreen): >>>
(photonCursor.c       | 00072 | PhotonSetCursor): >>>
(photonCursor.c       | 00056 | PhotonRealizeCursor): >>>
(nto.c                | 00255 | InitInput ): InitInput(1,...)
(ntoEvents.c          | 00061 | NtoEQInit): >>>
(nto.c                | 00194 | NtoMouseProc ): NtoMouseProc(8194138,0)
(nto.c                | 00225 | NtoKeybdProc ): NtoKeybdProc(817f2f0,0)
Found keyboard file: en_US_101.kbd
de_DE_102.kbd <-> en_US_101.kbd
Keyboard fallback
(nto.c                | 00194 | NtoMouseProc ): NtoMouseProc(8194138,1)
(nto.c                | 00225 | NtoKeybdProc ): NtoKeybdProc(817f2f0,1)


#pidin
..........................
841121877   1 ./s5ipc             10r SIGWAITINFO
841121877   2 ./s5ipc             10r RECEIVE     1
843104289   1 r/photon/bin/pterm  10r RECEIVE     1
843104294   1 bin/sh              10r REPLY       180243
843329560   1 usr/photon/bin/ped  10r REPLY       253983
843329575   1 ./Xphoton           10r SIGWAITINFO
#
# xlogo
Warning: Cannot convert string "xlogo32" to type Pixmap

and 
843329575   1 ./Xphoton               10r SIGWAITINFO
843358248   1 usr/pkg/bin/xlogo   10r SIGWAITINFO

(nto.c                | 00225 | NtoKeybdProc ): NtoKeybdProc(817f2f0,1)
New Window 0,0 102x102 root 0 Redirect 0
create wdw = 820cac0, wid = 83b22c0
PtRealizeWidget ret = 0 (errno 0) rid = 107
got_focusfn
lost_focusfn

Everything is all right, but when I move xlogo window the problem appears

843329575   1 ./Xphoton               10r READY
843358248   1 usr/pkg/bin/xlogo   10r SIGWAITINFO

and after closed xlogo:
lost_focusfn
got_focusfn
lost_focusfn
destroy wdw = 820cac0
(photonCursor.c       | 00072 | PhotonSetCursor): >>>
(nto.c                | 00317 | OsVendorInit): >>>
Xphoton starting:
X.Org X Server 1.6.3
Build Date: 20100405
Display mode: Rootless Photon
(nto.c                | 00278 | InitOutput ): InitOutput(816afc0,1...)
[dix] Could not init font path element /usr/pkg/lib/X11/fonts/OTF, removing from list!
(photonCursor.c       | 00056 | PhotonRealizeCursor): >>>
(photonCursor.c       | 00039 | PhotonCrossScreen): >>>
(photonCursor.c       | 00072 | PhotonSetCursor): >>>
(nto.c                | 00255 | InitInput ): InitInput(1,...)
(ntoEvents.c          | 00061 | NtoEQInit): >>>
(nto.c                | 00194 | NtoMouseProc ): NtoMouseProc(8347780,0)
(nto.c                | 00225 | NtoKeybdProc ): NtoKeybdProc(8347548,0)
Found keyboard file: en_US_101.kbd
de_DE_102.kbd <-> en_US_101.kbd
Keyboard fallback
(nto.c                | 00194 | NtoMouseProc ): NtoMouseProc(8347780,1)
(nto.c                | 00225 | NtoKeybdProc ): NtoKeybdProc(8347548,1)

but 
843329575   1 ./Xphoton           10r READY

I have the return to the state "./Xphoton 10r SIGWAITINFO"  in the case of the old version Xphoton. 
This same is when I change the size of the window.
New xphoton still stays in the READY state after change the size when old xphoton   go to SIGWAITINFO

bogdan
Re: FINALLY: xphoton for QNX 6.4.1 alpha - please test!  
Do you have any plans to update this for 6.5.0?

Thanks,
Phil
Re: FINALLY: xphoton for QNX 6.4.1 alpha - please test!  
Well this whole xphoton stuff was always very beta and I don't know if there are still people interested.

If yes, I could update this to 6.5.0 and fix some of the bugs still present.
Re: FINALLY: xphoton for QNX 6.4.1 alpha - please test!  
> Well this whole xphoton stuff was always very beta and I don't know if there 
> are still people interested.
> 
> If yes, I could update this to 6.5.0 and fix some of the bugs still present.

Andre would be great if the next version of the Xphoton for QNX 6.5.0 you submit.
bogdan
Re: FINALLY: xphoton for QNX 6.4.1 alpha - please test!  
> > Well this whole xphoton stuff was always very beta and I don't know if there
>  
> > are still people interested.
> > 
> > If yes, I could update this to 6.5.0 and fix some of the bugs still present.
> 
> 
> Andre would be great if the next version of the Xphoton for QNX 6.5.0 you 
> submit.
> bogdan


Okay, I can give it a try. This can take some time - the current bugs are making Xphoton really unstable.

André
Re: FINALLY: xphoton for QNX 6.4.1 alpha - please test!  
There's native X too.  It hasn't been tested on a lot of hardware but it works for me.

Regards,

-seanb

----- Original Message -----
From: Phillip Michael [mailto:community-noreply@qnx.com]
Sent: Tuesday, October 18, 2011 12:18 AM
To: pkginfo-pkgsrc <post89431@community.qnx.com>
Subject: Re: FINALLY: xphoton for QNX 6.4.1 alpha - please test!

Do you have any plans to update this for 6.5.0?

Thanks,
Phil



_______________________________________________

PkgInfo
http://community.qnx.com/sf/go/post89431
Re: FINALLY: xphoton for QNX 6.4.1 alpha - please test!  
> Do you have any plans to update this for 6.5.0?
> 
> Thanks,
> Phil

Xphoton compilation with patches from Andre on 6.5.0 is not a problem.
If you want I'll make available you the version of xorg-server-1.6.3.
bogdan