Forum Topic - xphoton Port for QNX 6.4.1 (with preview) !!!:
   
xphoton Port for QNX 6.4.1 (with preview) !!!  
Hi there,

I think I have a good message.

Today I got xphoton on the new X.ORG on QNX 6.4.1 up and running. After much struggling with the X11 and xphoton code I 
integrated xphoton in the current X.ORG again. Most of the old xphoton code has been used (thanks seanb!) and much 
things have been adapted.

Here a little screenshot of it:

http://www.localmindprovider.com/xphoton.jpg

It's still not receiving any mouse/keyboard events. When this is done, I will release a first alpha version of it.

Regards,
André
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
Finished the basics for event handling today. I needed to replace most of the event stuff of the xphoton-Xfree-version, 
because in X.org the internal events aren't built manually, but with special functions (GetPointerEvents and so on). Was
 really bloodcurdling :-) But now, keyboard and mouse input are working for basic application like xcalc, xev, xmore, 
xterm etc.

Now I'm asking myself how to distribute xphoton. Since I changed some stuff of the rootless library which has been 
originally developed for Xquartz and also changed many makefiles and configures I don't know if I should just build this
 as diff / pkgsrc patch. 

Sean or someone else @QNX, could you give me some advice how to "organize" this project?
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
Hi André,

that are really cool news! I have been locking for running X programs against up to date X server under Photon for some 
years. 2 years ago I got to the point where the xserver was build successfully, but was not starting -  but then I have 
to gave up 8-( You will find my work in the Log of pkgsrc ...

> Now I'm asking myself how to distribute xphoton. 

The perhaps easiest way may be to post the required changes to this forum as a unified diff. This would allow other 
people to have a look at the required changes.

In the long run the best thing would be to get the changes merged into xorg. This step has the advantage that any 
changes to xorg apply to the xphoton, too. The port or better the support is then visible to the largest extend.

An intermediate step would be to prepare patches against the pkgsrc svn repository here at foundry24. This way many QNX 
users will benefit from your work!

(I am not working for QNX.)

Bye
Christian
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
You're right. So I will distribute it as diff in first instance.

Today I finished keyboard handling for foreign keyboard layouts. German and other keyboards are supported now. Asian 
keyboards unfortunately not. I did not completely figured out how to build that.

I will put some news here when I'm ready with the first version.

André
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
Working better and better.... XPDF

http://www.localmindprovider.com/xphoton3.jpg
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
Would be great to see the XPhoton on 6.4.1
I'm still working of porting the native xfree to QNX 6.4.1 but I have still problems with the touchscreen driver :-(. 
Poor documentation 

But as a workaround this would be great to have. Please let me know if you have some results released.

many thx
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
Hi André,
any progress in xphoton port 
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
Had some work in the last weeks so I could not work on xphoton.

But I can try to finish a first alpha in the next days. I will keep you informed.
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
Do you need some help with it?

I think this port is very important for QNX after the system itself will lose more and more of its features (installer: 
gone, package system: gone, IDE: gone...)
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
On Tue, Mar 09, 2010 at 06:57:17AM -0500, Michael Pfeiffer wrote:
> Do you need some help with it?
> 
> I think this port is very important for QNX after the system itself will lose more and more of its features
> (installer: gone, package system: gone,
What's wrong with pkgsrc ? :)

> IDE: gone...)

AFAIK the big hurdle for the ide is java.  A good
start might be to get lang/openjdk7 going but that's
a tricky one since it needs an existing java
environment so probably some sort of cross compile on
linux...

As far as X goes I'd like to see a native port (no
photon).  We've made some good progress but there's
still a few pieces missing.

Regards,

-seanb
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
> On Tue, Mar 09, 2010 at 06:57:17AM -0500, Michael Pfeiffer wrote:
> > Do you need some help with it?
> > 
> > I think this port is very important for QNX after the system itself will 
> lose more and more of its features
> > (installer: gone, package system: gone,
> What's wrong with pkgsrc ? :)

pkgsrc is fine for developers but unusable for an end user. I can't tell somebody that only wants to install a software 
that he

- has to check out the pkgsrc
- modify some environment variables
- do the bootstrapping
- compile a specific project
- when downloading fails (as it is true for several MESA-projects) search for them, download them an copy them to the 
correct directory
- try to compile again

Here the package system has been much more elegant, only some packages needed to be installed and verything was fine.

At least I do not understand why it is gone, RPM/DEB is used widely and QNX drops its own package system...
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
On Wed, Mar 10, 2010 at 03:56:41AM -0500, Michael Pfeiffer wrote:
> > On Tue, Mar 09, 2010 at 06:57:17AM -0500, Michael Pfeiffer wrote:
> > > Do you need some help with it?
> > > 
> > > I think this port is very important for QNX after the system itself will 
> > lose more and more of its features
> > > (installer: gone, package system: gone,
> > What's wrong with pkgsrc ? :)
> 
> pkgsrc is fine for developers but unusable for an end user. I can't tell somebody that only wants to install a 
software that he

Check out the binary packages page:

http://community.qnx.com/sf/wiki/do/viewPage/projects.pkgsrc/wiki/BinaryPackages

Regards,

-seanb
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
> Check out the binary packages page:
> 
> http://community.qnx.com/sf/wiki/do/viewPage/projects.pkgsrc/wiki/
> BinaryPackages

I know about these binaries, nevertheless all the dependencies between packages have to be handled manually. The 
automated resolving of dependencies is gone with the QPK packages and the software installer. Hopefully QNX 6.5 does not
 lose features again...

Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
On Mon, Mar 15, 2010 at 04:02:52AM -0400, Michael Pfeiffer wrote:
> > Check out the binary packages page:
> > 
> > http://community.qnx.com/sf/wiki/do/viewPage/projects.pkgsrc/wiki/
> > BinaryPackages
> 
> I know about these binaries, nevertheless all the dependencies between packages have to be handled manually. The 
automated resolving of dependencies is gone with the QPK packages and the software installer. Hopefully QNX 6.5 does not
 lose features again...

It's been a while since I tried pkg_add (I usually compile
myself) but dependencies should be handled automatically.

Regards,

-seanb
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
Currently I try to restructure the whole code. The old xphoton was built up on the xquartz DDX, but most things aren't 
needed there. Also it's hard to debug all the X stuff, because the X.org server is sometimes calling this and calling 
that.  I implemented a basic logging system, so I can follow all the stuff xorg is calling in my code. Most of the work 
to do now is refactoring and restructuring.

I also support rootless X and not native X currently. But I don't think it's a problem to get it running with it.

Fortunately I didn't change much of xorgs code itself - just the configure.in and some Makefiles. I didn't touch any of 
the avaialble rootless code which is implemented in xorg currently, so this whole thing is mostly independant. The old 
xphoton has its own rootless code stuff but I use the code of xquartz now. This reduces the maintenance for xphoton for 
sure :-)

Just to be clear: All the X stuff is *very* weird. All APIs are documented & implemented very uncleanly. Also there are 
many ways to handle user input. There are no straight-forward ways to implement a DDX in X. That's why I hope the code 
is maintainable in future.

I got the mplayer port source from cranksoftware. My aim is to get mplayer running on Photon with the X11 user interface
.

But I'm happy some people are interested in this stuff :-) What about setting up a seperate project / SVN for it? Sean, 
would you work on xphoton again? I saw you implemented much stuff in it before.

André
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
> But I'm happy some people are interested in this stuff :-)

Definitely! I already switched back to QNX 6.3.2 because XPhoton is missing in 6.4 - and resulting from that many 
applications are no longer available for that new version.

So if there is anything I can do...
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
> Definitely! I already switched back to QNX 6.3.2 because XPhoton is missing in
>  6.4 - and resulting from that many applications are no longer available for 
> that new version.
> 
> So if there is anything I can do...

I will upload the source code into my SVN with anonymous access. This way you can get an overview. As I said, X is 
really weird :-) Much of the code is still hacked and full of workarounds but I think with some work we can get it 
stable. 

If you got some questions you can reach me under andre(spider-monkey)woesten(dot)com (I'm german). I can also send you 
the mplayer source and some test code this way.

How experienced are you with C/C++ development on QNX? Did you already compile modular-xorg on 6.4.1 (which is possible)
?


Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
OK, I commited the source to

http://qnx.falloutshelter.de/

I hope I didn't forget something.

There is README.xphoton where I put the configure line for x11/modular-xorg-server. In xphoton are all files which need 
to be (over)written into work/xorg-server-1.6.3 before building the package. You surely need to configure and make 
MANUALLY in the work directory for sure. If that works start hw/xphoton/Xphoton, which starts the X server on your QNX. 
 After that you can start X applications.

Tell me if that works.
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
Hi,

I'll check that and see what I cvan do here :-)
Re: xphoton Port for QNX 6.4.1 (with preview) !!!  
I created the first patch for the pkgsrc repository. I created a new thread for that. Please go here:

http://community.qnx.com/sf/discussion/do/listPosts/projects.pkgsrc/discussion.pkginfo.topc12895