From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,438e2b92dfe10363 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-05-27 12:47:36 PST Path: sparky!uunet!sunquest!venus.sunquest.com!terry From: terry@venus.sunquest.com (Terry R. Friedrichsen) Newsgroups: comp.sys.dec Subject: Re: what library do I use to make windows, portably between Ultrix & VMS? Summary: Motif and VMS considered harmful Keywords: X Motif VMS Message-ID: <40825@sunquest.UUCP> Date: 28 May 92 00:11:49 GMT Sender: news@sunquest.UUCP Followup-To: comp.sys.dec Distribution: usa Organization: Sunquest Information Systems, Tucson klee@wsl.dec.com writes: >Mike Levin writes: >> I want to add a windows interface to my program. This program >> works on Ultrix, SunOs, VMS, etc. What library (xlib?) should I use, >> so that my window-making code is portble (i.e., compiles with minor >> conditional compilation #ifdefs) between Unix and VMS with DecWindows? >Use Motif. It is available on all 3 of your platforms. Code often >recompiles on each with no changes. Um. Wait. You can't compile on VMS without changes; at the very least you've gotta fix up the #includes to include DEC's mongo .h files instead of all the nice functionally-split ones you get from MIT. And then you've gotta struggle with the symbols that just mysteriously aren't there. After that, yeah, code often recompiles on each with no changes. It even links successfully. But then you gotta *run* it (unless you just write code for typing practice :-). Here VMS loses again; code that works on several Unix boxes mysteriously hangs, does weird stuff like draw incredibly tiny windows instead of the nice sizes they should be, or ACCVIOs deep in the heart of the X code somewhere. Upgrade to the latest version of VMS, and the set of symptoms is the same, but the programs that cause them change places ... sigh. Even the O'Reilly examples do this sort of thing, so it ain't just me ... At that point I just gave up on making my code work under VMS. (Let me interject here that I haven't tried this with Motif widgets, just Athena ones. And I haven't tried since VMS 5.4 first came out ... so if things have improved since then, I wouldn't know about it.) Then even if you get working code from somewhere, you have to fight your way through cruft like "$ SET DISPLAY/CREATE/BLAH/WOOF/BARF" and "$ CREATE/TERM/UP/DOWN/SIDEWAYS" - but that's an entirely different flame war. Based on the "etc." in the original poster's question, I really can't personally recommend Motif - it may not run on the next platform you want to port to. Personally, I stick with Athena widgets, which are supposed to be everywhere; it's not as classy in some respects, but my code works on other systems, and I can post it to the net with reasonable assurance that everybody with a Unix X platform can run it. Terry R. Friedrichsen terry@venus.sunquest.com (Internet) uunet!sunquest!terry (Usenet) terry@sds.sdsc.edu (alternate address; I live in Tucson)