[comp.windows.x] Application Portability

alan@metasoft.UUCP (Alan Epstein) (06/25/89)

Can anyone with experience tell me what problems, if any, were encountered
in porting X application software from one platform to another?

My assumption is that a well behaved application need no more than a
recompile, if that much. Is this really true?

I'm most interested in the Sun to Apollo, DEC and HP porting, using
only Xlib and Xt.

Also, are there any problems running X applications on one type of
machine, with a server of another type? Again, I expect to hear
everything works as advertised, but....

PLEASE SEND REPLIES VIA E-MAIL. i'll post a summary if i get
interesting responses.

thanks.

-----------------------------
Alan Epstein
Meta Software Corp                   UUCP:  ...bbn!metasoft!alan
150 Cambridgepark Dr        Internet/ARPA:  alan%metasoft@bbn.com
Cambridge, MA 02140  USA
-----------------------------

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (06/27/89)

> Can anyone with experience tell me what problems, if any, were encountered
> in porting X application software from one platform to another?

Our master sources currently build on many machines with very few #ifdefs, we
currently have machines in house from Apollo, AT&T, DEC, HP, IBM, Sony,
Sun, and Tek.  Most of the code that I have written requires #ifdefs
mostly because the
operating systems are a bit different on each machine.  Xlib, Xt and Xaw all
can use exactly the same sources.

If you are truely interested in maximum portability keep in mind that compiling
in filenames and fontnames will generally spell disaster on some system
out there.  Check out the documentation on the X Resource Manager.  It provides
one pretty good method of making these type of application resources user and
site manager specifiable.

> Also, are there any problems running X applications on one type of
> machine, with a server of another type? Again, I expect to hear
> everything works as advertised, but....

You should have no problems whatsoever, that is what Network Transparency is
for :-)  I have run application on my Tek box from all of the vendors machines
listed above.

						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213