home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / motif-faq / part7 < prev    next >
Encoding:
Internet Message Format  |  2004-05-05  |  54.0 KB

  1. Path: senator-bedfellow.mit.edu!dreaderd!not-for-mail
  2. Message-ID: <motif-faq/part7_1083675484@rtfm.mit.edu>
  3. Supersedes: <motif-faq/part7_1082292761@rtfm.mit.edu>
  4. Expires: 17 Jun 2004 12:58:04 GMT
  5. References: <motif-faq/part1_1083675484@rtfm.mit.edu>
  6. X-Last-Updated: 2002/01/31
  7. Organization: none
  8. Subject: Motif FAQ (Part 7 of 9)
  9. Newsgroups: comp.windows.x.motif,comp.answers,news.answers
  10. Keywords: FAQ question answer
  11. From: kenton@rahul.net (Ken Lee)
  12. Reply-To: kenton@rahul.net (Ken Lee)
  13. Approved: news-answers-request@MIT.EDU
  14. Followup-To: poster
  15. Summary: Motif Frequently Asked Questions (with answers).
  16. Originator: faqserv@penguin-lust.MIT.EDU
  17. Date: 04 May 2004 12:59:12 GMT
  18. Lines: 1205
  19. NNTP-Posting-Host: penguin-lust.mit.edu
  20. X-Trace: 1083675552 senator-bedfellow.mit.edu 566 18.181.0.29
  21. Xref: senator-bedfellow.mit.edu comp.windows.x.motif:75190 comp.answers:57055 news.answers:270859
  22.  
  23. Archive-name: motif-faq/part7
  24. Last-modified: 1 FEB 2002
  25. Posting-Frequency: irregular
  26. Organization: Kenton Lee, X/Motif Consultant, http://www.rahul.net/kenton/
  27. URL:  http://www.rahul.net/kenton/mfaq.html
  28. Version: 8.1
  29.  
  30. -----------------------------------------------------------------------------
  31. Subject: 228)  TOPIC: LANGUAGE BINDINGS
  32.  
  33. -----------------------------------------------------------------------------
  34. Subject: 229)  What is ViewKit? Is there a free version?
  35. [Last modified: Jun 98]
  36.  
  37. Answer: ViewKit is an enhanced version of the C++/Motif framework that Doug
  38. Young describes in his book *Object-Oriented Programming with C++ and
  39. OSF/Motif* (Prentice-Hall).
  40.  
  41. Viewkit is now available for a variety of platforms from ICS.  The Linux
  42. version is free.  Their web site include free technical papers and ordering
  43. information:
  44.  
  45. http://www.viewkit.com/
  46.  
  47.  
  48. There is also a inexpensive ViewKit clone from the Hungry Programmers:
  49.  
  50. http://www.hungry.com/cgi-bin/unjava/products/viewkit/
  51. ftp://ftp.hungry.com/pub/hungry/viewkit
  52.  
  53.  
  54. Allen Fogleson (foggie@dtx.net) writes: I have compiled [the Hungry
  55. Programmers' version] on my linux system using RedHat Motif 2.0, There is no
  56. documentation, but the technical paper on the SGI site should be enough to get
  57. most people going. There is very little in the way of documentation either, so
  58. I should note that if you are using Motif2.0 you must either #define
  59. USE_MOTIF20 in a header file, or add it to the CXXFLAGS, and CFLAGS line of
  60. the makefile or you will get many errors when compiling the combo box
  61. bindings. Also for some reason the viewkit did not install correctly for me
  62. and I ended up hand installing it myself. I have compiled some simple
  63. applications with it, and it seems to be working fine. It is intended to
  64. follow the SGI API. They are working on a programmers guide and a reference
  65. manual for the product. All in All this is a very affordable (spelled cheap)
  66. answer to C++ development of OSF/Motif Apps.
  67.  
  68. -----------------------------------------------------------------------------
  69. Subject: 230)  Is there a C++ binding for Motif?
  70. [Last modified: Nov 98]
  71.  
  72. Answer: This answer is out-of-date and will probably be dropped in the near
  73. future.  I recommend that you study other sources, such as trade magazines,
  74. for more current information on products.
  75.  
  76. See also the previous answer concerning ViewKit (from Doug Young and the
  77. Hungry Programmers.
  78.  
  79. (Added Oct. 95) YACL is a freely available C++ class library that includes GUI
  80. classes based on the Model-View-Controller paradigm. The class protocols are
  81. designed in a platform independent manner, and are implemented under Motif 1.2
  82. as well as under Microsoft Windows and OS/2. This makes it possible to
  83. maintain a single code base for an application that runs on all three
  84. platforms. YACL also includes a suite of container and data storage classes
  85. for general-purpose programming. YACL is available from ftp.cs.sc.edu in
  86. pub/yacl. For more information, see the web page:
  87.  
  88. http://www.cs.sc.edu/~sridhar/yacl.html.
  89.  
  90. Thanks to M. A. Sridhar, sridhar@usceast.cs.sc.edu.
  91.  
  92. (Added Sept. 95; URL updated Jan. 96) Amulet User Interface Toolkit from Brad
  93. A. Myers, Rich McDaniel, Andrew Mickish, Alex Klimovitski, Carnegie Mellon
  94. University.  Amulet is a user interface software environment for C++ to
  95. support future user interface software research.  This environment, which will
  96. be portable across X/11, Microsoft Windows, and the Macintosh, is designed to
  97. be very flexible: parts can be replaced and new technologies and widgets can
  98. be easily created and evaluated.  Built-in support will be provided for direct
  99. manipulation, multi-font text editing, gesture recognition, speech
  100. recognition, 2-D and 3-D animations, visualizations including maps and large
  101. data sets, world-wide-web browsing and editing, and multiple people
  102. interacting with the system at the same time (CSCW).  Another goal is to be
  103. useful for students, which means that Amulet must be easy to learn.  Finally,
  104. the system will provide sufficient performance, robustness and documentation
  105. so it will be useful for general user interface developers.  See:
  106.  
  107. http://www.cs.cmu.edu/Web/Groups/amulet/amulet-home.html
  108.  
  109. Answer: ObjectBuilder by Openware Technologies, Inc. is a complete C++
  110. implementation of Motif. Kris Gottschalk (kris@boulder.openware.com) wrote
  111. [I've condensed his features list and a few others details...ksall@cen.com]:
  112.  
  113. Since Solbourne began developing OI around 1988, it was purchased by ParcPlace
  114. Systems (at which time ObjectBuilder was developed) and as of Oct. '94,
  115. ObjectBuilder/OI was purchased by Openware Technologies, Inc from ParcPlace.
  116. OI is now on release 4.6 and has a customer base of about 3,000 seats.
  117.  
  118. [ObjectBuilder's features include: Visual Subclassing, Dynamic Reparenting,
  119. Customizable Main Window, Xt Kit, Resource Editors, Flexible Geometry
  120. Management, Customizable palattes and attribute editors, 16 Bit
  121. Internationalization, Mnemonics and Accelerator Editor, Motif or OPEN LOOK
  122. look-and-feel switch, Help Editor.]
  123.  
  124. ObjectBuilder is currently available on Sun/Solaris, HP 9000/700 and IBM AIX
  125. RS6000.  We will also be supporting SGI, DEC Alpha, Sco UNIX, Unysis Unixware
  126. and NCR SVR4 throughout the first half of 1995.  And our anxiously awaited
  127. Windows NT platform will be available in late 1995.  In addition, Openware
  128. will be launching a full array of C++ development tools including an Object
  129. Repository, Debugger, OI Table Widget and Adapter.  Also anticipate an
  130. ObjectBuilder upgrade 2.6/4.6 in April and a new ObjectBuilder release 3.0/5.0
  131. in the summer.
  132.  
  133. If you have any more interests or questions or would like to set up a
  134. evaluation of ObjectBuilder, please contact:
  135.  
  136. Kris Gottschalk
  137. Account Manager
  138. Openware Technologies, Inc.
  139. Object Technologies Business Unit
  140. 4909 East Pearl Circle  Suite 200
  141. Boulder, CO  80301
  142. Phone: 303-440-9991 x4224
  143. Fax: 303-440-9934
  144. email: kris@boulder.openware.com
  145.  
  146.  
  147. Answer: Wind/U implements MFC (Microsoft Foundation Classes) on Unix using
  148. Motif.  Bristol Technology, Inc. (203) 438-6969, info@bristol.com.  Microsoft
  149. Visual C++ together with Wind/U can be used to create Motif applications.
  150. According to J. Daniel Smith <dan@bristol.com>, here's how it works: you
  151. create the application on the PC using MSVC++ and then port it to Unix (or
  152. VMS) using Wind/U.  Since Wind/U uses X and Motif to implement the Windows
  153. API, you end up with a true Motif application running native on the target
  154. platform.
  155.  
  156. Answer: WWL is a library which defines C++ classes around X Toolkit Widgets.
  157. It is intended to simplify the task of C++ code writers when using the Toolkit
  158. by providing them with C++ objects, methods, type checking and several utility
  159. functions and classes.
  160.  
  161. WWL has been tested under SunOs4.0.3 on sun3 and sun4, HPUX version 6.5 and
  162. 7.0 and Ultrix 4.0 on DECstation 3100 and 5000. It is expected to work on most
  163. other UNIX systems without too many problems.
  164.  
  165. WWL is distributed as a tar file with all the source, documentation and
  166. example. The file is available using anonymous ftp from
  167.  
  168. ftp.x.org            /R5contrib/WWW-1.2.tar.Z
  169.  
  170. ( ftp://ftp.x.org/R5contrib/WWW-1.2.tar.Z )
  171.  
  172. Answer: Rogue Wave Software has a C++ binding for Motif called View.h++.
  173.  
  174. "View.h++ is a complete C++ interface to OSF/Motif.  It doesn't just
  175. encapsulate it, but also includes a set of classes that provide a level of
  176. abstraction above Motif, thus simplifying menu and dialog creation, XmStrings,
  177. XmFontLists, etc.  View.h++ supports a Model- View-Controller architecture,
  178. allowing for an even more object-oriented interface design.  Includes a copy
  179. of Rogue Wave's Tools.h++ (foundation class library)" Rogue Wave also offers
  180. full support for View.h++.
  181.  
  182. It is currently available for Sun Sparc, IBM RS/6000, HP 9000/700 series, SCO,
  183. Intel SVR4 ESIX.  Please call for Silicon Graphics and DEC Ultrix status.
  184.  
  185. For additional information, please contact:
  186.  
  187. Matt Steinauer
  188. Rogue Wave Software, Inc.
  189. P.O. Box 2328
  190. Corvallis, OR 97339
  191. Phone: (503)754-3010
  192. Fax:   (503)757-6650
  193. email:   matts@roguewave.com
  194.  
  195.  
  196. Answer: Builder Xcessory 3.0, an interface builder from ICS, allows the user
  197. to visually build C++ classes from Motif and user-written widgets.  C++ code
  198. is generated in the "Doug Young" fashion.  (Doug actually worked on this
  199. project with ICS.)  C and UIL can also be generated.
  200.  
  201. Integrated Computer Solutions, Inc. (ICS) 201 Broadway, Cambridge, MA  02139
  202. USA info@ics.com   617/621-0060
  203.  
  204. Answer: Andreas.Baecker@gmd.de wrote: The GINA++ application framework
  205. contains an encapsulation of the OSF/Motif widg et classes and the Xt
  206. functionality into C++ classes. Its functionality is comparab le to that of
  207. the ULowell binding and the WWL. Additionally, it provides an easy-to -use
  208. framework for modeling new composite and primitive widget classes, plus an
  209. application framework similar to ET++ or MacApp build on top of it. The
  210. binding may be used independently from the framework classes. GINA++ is
  211. available through anonymous ftp from ftp.gmd.de in the directory
  212. /gmd/ginaplus.  Documentation about the Motif binding has been published in
  213. the X Resource Journal, Number 2, 1992, Pages 106-130. The binding compiles
  214. with AT&T C++ 2.1 and GNU G+ + 2.1 and has been tested on SunOS 4.1.[12],
  215. X11R4 and Motif 1.1.3.
  216.  
  217. Answer: Motif++ is a library that defines C++ class "wrappers" for the widgets
  218. defined in the X11R5 OSF/Motif-1.2 widget library.  It also supports
  219. X11R4/Motif-1.1 as well.
  220.  
  221. Motif++ is also an application toolkit that provides other tools in
  222. conjunction with the widget wrapper classes.  It has support for the Xbae
  223. widget set, plus other widgets.  It has Imake support, and lots of test files.
  224. Motif++ also has alot of contributed software.
  225.  
  226. Motif++ is very similar to other public domain widget libraries such as The
  227. Widget Wrapper Library (WWL) and the C++ Binding for OSF/Motif developed at
  228. the University of Lowell. The two latter libraries are the result of much
  229. larger efforts.
  230.  
  231. Available via anonymous ftp:
  232.  
  233. ftp://src.doc.ic.ac.uk/packages/motif++/motif++.30.jul.94.tar.gz
  234.  
  235. The /packages/motif++ also contains documentation.  For more information,
  236. contact Ronald van Loon (rvloon@motif.xs4all.nl).  There is also mailing list
  237. for Motif++:
  238.  
  239. motif++@motif.xs4all.nl
  240.  
  241. To join, send email to the administrative address:
  242.  
  243. motif++-request@motif.xs4all.nl
  244.  
  245.  
  246. Answer: C++ Report, a magazine published by SIGS Publications, now regularly
  247. publishes articles on X, Xt and Motif vs. C++ written by Ronald van Loon.
  248.  
  249. Answer: Xm++ is a user interface framework for the C++ language built upon X11
  250. and the X-Toolkit. It is designed to be a simple and intuitive programming
  251. interface to access the functionality of commonly used widgets.  Xm++ was
  252. initially created for the Motif widget set, now support for the Athena widgets
  253. was added. Applications created with Xm++ run in both environments without
  254. changes, although many nice features are only available when using Motif.
  255.  
  256. Xm++ is available on: ftp.x.org as: /R5contrib/Xm++.0.53.tar.Z (
  257. ftp://ftp.x.org/R5contrib/Xm++.0.53.tar.Z ).
  258.  
  259. Answer: (updated November. 98) wxWindows is a toolkit for platform-independent
  260. GUI programming in C++. It consists of several class libraries and tools.
  261. wxWindows has been made freely available with no commercial restrictions. For
  262. more information, see http://wxwin.home.ml.org
  263.  
  264. Answer: (updated Sept. 95) Intersolv now markets, maintains, and enhances
  265. C++/Views (formerly from Liant).  The C++/Views solution provides an
  266. extensible object class library with visual development environment.  See
  267. http://www.intersolv.com/cpls.html. Thanks to Uwe Baemayr (uwe@liant.com) for
  268. the correction.
  269.  
  270. Answer: Quest has ObjectViews.
  271.  
  272. Answer: Doug Young has written a book "Object Oriented Programming with C++
  273. and Motif", Prentice-Hall ISBN 0-13-630252-1 about using C++ without requiring
  274. one of these toolkits.
  275.  
  276. Unfortunately, this library (last released in 9/92) has the same name as the
  277. one by Ronald van Loon (rvloon@motif.hacktic.nl).  Motif++1.2 is a library
  278. that defines C++ class "wrappers" for the widgets defined in the OSF/Motif-1.1
  279. widget library.  Motif++1.2 is also an application toolkit that provides other
  280. tools in conjunction with the widget wrapper classes.  One enhancement of
  281. Motif++1.2 beyond its wrapper classes are the addition of an "application"
  282. class which takes care of the low-level tasks including initializing X,
  283. creating and managing one or more top-level shells, and entering the main
  284. event loop.  Another feature of Motif++1.2 is its integration with The Widget
  285. Creation Library (Wcl).  Motif++1.2 makes it easy to initialize Wcl and create
  286. C++ wrappers for desired widgets in the widget tree.  Availability: anonymous
  287. FTP at ftp.arc.umn.edu (137.66.130.11), file pub/Motif++1.2.tar.Z.  Contact
  288. Paul Felix, felix@ahpcrc.umn.edu or pfelix@vx.cis.umn.edu.
  289.  
  290. submitted by: mvc!biggers@duke.cs.duke.edu ( Mark R. Biggers )
  291.  
  292. -----------------------------------------------------------------------------
  293. Subject: 231)  How can I avoid C++ String class and typedef char *String
  294. conflicts?  We're using the USL C++ Standard Components which has the String
  295. class.  This, however, conflicts with the typedef char *String found in
  296. <X11/Intrinsic.h>
  297. [Last modified: Oct 94]
  298.  
  299. Answer: This is very simple to workaround.  I agree that it is "wrong" but all
  300. you need to do is:
  301.  
  302. #define String XtStringType
  303. #include "all the X files"
  304. #undef String
  305.  
  306.  
  307. This will translate the offending symbol.
  308.  
  309. Thanks to Doug Rand <drand@sgi.com>
  310.  
  311. -----------------------------------------------------------------------------
  312. Subject: 232)  How can I have a C++ member function in a callback?
  313. [Last modified: Oct 94]
  314.  
  315. Answer: There are three common user problems with C++ callbacks.  First, make
  316. sure you use the correct function prototype for the function declarations.
  317. Second, the callback function must be declared as a static member of the
  318. class.  Third, when registering it with XtAddCallback(), you must use its full
  319. signature.  For example: (from Ken Lee, http://www.rahul.net/kenton/)
  320.  
  321.  
  322. class MyClass {
  323. void createWidgets();
  324. static void myButtonCB(Widget, XtPointer, XtPointer);
  325. };
  326. void MyClass::createWidgets() {
  327. w = XmCreatePushButton(...);
  328. XtAddCallback(w, XmNactivateCallback, &MyClass::myButtonCB,
  329.     (XtPointer) this);
  330. }
  331. void myButtonCB(Widget w, XtPointer clientData, XtPointer callData) {
  332. MyClass *myclass = (MyClass *) clientData;
  333. }
  334.  
  335. Note that the "this" pointer is used as the client data.  This technique is
  336. popular, but not required.
  337.  
  338.  
  339. Motif++ has a nice tutorial summarizing mechanisms (Ronald van Loon,
  340. rvloon@motif.xs4all.nl).  See his articles in the September, 1994 and
  341. Nov/December, 1994 issues of C++ Report.
  342.  
  343. Doug Young's book deals extensively with one of these. The problem is that you
  344. don't get the object when you just use the function as a callback.  You need
  345. to pass the object as a pointer through as the client_data.  (use "this" as
  346. the client_data.) Then you can retrieve the object's address, and dereference
  347. from there. For example (Leo O'Donnell, Email: leo@avs.com),
  348.  
  349. class MyButton {
  350. public:
  351.         MyButton (Widget parent, const char *name) {
  352.             _button = XtVaCreateManagedWidget (
  353.                 name, xmPushButtonWidgetClass, parent, NULL, 0);
  354.             XtAddCallback (
  355.                 _button,
  356.                 XmNactivateCallback,
  357.                 &MyButton::activateCB,
  358.                 (XtPointer) this);
  359.         }
  360.         ~MyButton () { XtDestroyWidget (_button); }
  361. private:
  362. Widget  _button;
  363. static  void activateCB (Widget, XtPointer, XtPointer);
  364. };
  365.  
  366. void MyButton::activateCB (Widget, XtPointer thisBtn, XtPointer)
  367. {
  368. MyButton *btn = (MyButton *) thisBtn;
  369.  
  370. // OK you've got the button instance now. Do some stuff with it!
  371. }
  372.  
  373.  
  374. -----------------------------------------------------------------------------
  375. Subject: 233)  Is there a Common Lisp binding for Motif?
  376. [Last modified: Oct 94]
  377.  
  378. Answer: Try CLM. This includes a toolkit demon (in C) that takes a widget
  379. description (with callbacks), and forks a new process for each Motif
  380. application (which can be just a single menu, or whatever).  Lisp can then
  381. continue running, with a separate lightweight lisp process handling the
  382. connection & callbacks.  In North America & net environs, CLM-2.3.tar.Z is
  383. available from ftp.x.org.
  384.  
  385. There is also CLIM, the Common Lisp Interface Manager. It provides access to
  386. motif and other toolkits and window systems.  Here is some blurb: "Version 2.0
  387. of the Common Lisp Interface Manager (CLIM) provides access to Motif. CLIM is
  388. the emerging standard for GUI development in Common Lisp.  It offers a set of
  389. high-level facilities that enable rapid construction of user interfaces.
  390. Applications written using CLIM are portable across a variety of window
  391. systems and toolkits.  For example, on the X window System, both Motif
  392. (OSF/Motif) and Openlook (OLIT) are supported.  CLIM accesses the toolkit
  393. directly rather than emulating the look and feel."
  394.  
  395. CLIM is available from a variety of Common Lisp vendors including Symbolics
  396. and Franz Inc. (info@franz.com).
  397.  
  398. -----------------------------------------------------------------------------
  399. Subject: 234)  Is there an Ada binding for Motif? (Part 1 of 2)
  400. [Last modified: Jan 96]
  401.  
  402. Answer: Most of the information in this answer (parts 1 and 2) is probably
  403. very dated by now. If anyone wants to provide updates, I'll include them. In
  404. the meantime, Ada users are encouraged to visit the Ada Information
  405. Clearinghouse (AdaIC) at:
  406.  
  407. http://sw-eng.falls-church.va.us/AdaIC/
  408.  
  409. (The Jan. 96 change updates the information provided by Thomson Software
  410. Products.)
  411.  
  412. Answer:  Integrated Computer Solutions, Inc. (ICS) supplies Ada bindings to
  413. Motif for a number of platforms and Ada compilers.  ICS also provides Builder
  414. Xcessory, a Motif interface builder, which outputs Ada code usable with the
  415. Ada bindings.  The product family is known collectively as the Ada Xcessories.
  416.  
  417. Integrated Computer Solutions, Inc. (ICS) 201 Broadway, Cambridge, MA  02139
  418. USA info@ics.com   617/621-0060
  419.  
  420.  
  421. Information on Ada bindings to Motif and other services (such as SQL and
  422. POSIX) can be found in a document maintained by the Ada Information
  423. Clearinghouse.  The report can be found at
  424.  
  425. host:   ajpo.sei.cmu.edu
  426. loc:    /public/ada-info/bindings.hlp.*
  427. access: anonymous ftp
  428.  
  429. The suffix to the file (indicated above with an asterix) is the date of the
  430. latest update to the document.  For example, the full name of the report
  431. updated on 14 June 1993 would be
  432.  
  433. /public/ada-info/bindings.hlp.14Jun93.
  434.  
  435. The file is ASCII.
  436.  
  437. ------ Included File
  438.  
  439.  
  440. [...Excerpted from the AdaIC report bindings.hlp.14Jun93...]
  441. [...Updates can be found on ajpo.sei.cmu.edu, in the    ...]
  442. [...file /public/ada-info/bindings.hlp.*  The suffix    ...]
  443. [...is always the date of the lastest version to the    ...]
  444. [...report.                                             ...]
  445.  
  446.                              SECTION 12
  447.                           X-Window System:
  448.                        OSF Motif and Open Look
  449.                        Available Ada Bindings
  450.  
  451.  
  452. 12.1  Description and Standardization Efforts
  453.  
  454. The X-Window System is a network-transparent window system.  It supports one
  455. or more screens containing overlapping windows or subwindows.  X display
  456. servers distribute user input to and accept output requests from various
  457. client programs located either on the same machine or elsewhere in the
  458. network.
  459.  
  460.     OSF Motif (Open Software Foundation/Motif) is a graphical user
  461.     interface from OSF that provides a Presentation Manager look and
  462.     feel for applications running on any system with X Window version
  463.     11.  It conforms to POSIX, ANSI C and X/Open's XPG3 standards.
  464.  
  465. 12.2  Resources Available from Software Reuse Libraries/Repositories
  466.  
  467.  
  468. ASSET                                               (Updated:  November 1992)
  469.  
  470. The following information was taken in its entirety from the ASSET Library
  471. Repository Catalog, October 9, 1992.  For more information on ASSET, see
  472. Appendix C.
  473.  
  474.  
  475. INTERFACE TO THE X WINDOW SYSTEM
  476.  
  477. VERSION_NUMBER    : 1.1
  478. DEVELOPED_BY      : SAIC
  479. RELEASE_DATE      : 29-SEP-88
  480. UNIQUE_IDENTIFIER : ASSET_A_240
  481. ALTERNATE_NAME    : SAICX2
  482. ASSET_TYPE        : SOFTWARE CODE
  483. FUNCTIONS         : INTERFACE, BIND
  484. OBJECTS           : ADA, X WINDOWS
  485. KEYWORDS          : STANDARDS, BINDINGS
  486. COLLECTION        : STARS FOUNDATIONS
  487. DISTRIBUTION      : UNLIMITED
  488.  
  489. DESCRIPTION       :
  490.  
  491. Interface to the X Window System An expression of the various concepts in Ada
  492. that provides a full, working Ada specification of the X Window system.
  493. Approved for public release; distribution is unlimited.
  494.  
  495. 12.3  Products Available from Vendors
  496.  
  497.  
  498. Advanced Technology Center                           (Updated:  November 1992)
  499.  
  500. The Advanced Technology Center (ATC) has an Ada binding to OSF Motif for their
  501. AXI~ product.  AXI is currently available for most UNIX-based platforms, and
  502. is supported by Verdix, Meridian, and TeleSoft compilers.
  503.  
  504. AXI is an Ada-to-X-Window System interface that provides the Ada programmer
  505. access to the 500+ functions, libraries, and procedures contained in the X
  506. library (Xlib), the X Toolkit (Xt), the X Extensible Library, the X
  507. Miscellaneous Utilities, the Motif widget set and the Motif Resource Manager.
  508.  
  509. ATC is planning to develop an Ada binding to Open Look for AXI.
  510.  
  511. For more information, contact:
  512.     Larry Paulson, Advanced Technology Center, 22982
  513.     Mill Creek Drive, Laguna Hills, CA  92653, USA; Phone:
  514.     714-583-9119
  515.  
  516. Thomson Software Products (formerly Alsys)                 (Updated:  Jan
  517. 1996)
  518.  
  519. Thomson Software Products markets the following Ada products: ObjectAda,
  520. AdaWorld for Cross Development, ActivAda, ActivAda Real-Time, and perfoRMAx,
  521. each described below. (Contact Thomson for pricing info.)
  522.  
  523. Product Name:       ObjectAda Hardware  SPARC-based systems OS        Solaris
  524.  
  525. ObjectAda is a complete object-oriented environment which is based on the new
  526. standard for the Ada language, Ada 95.  ObjectAda gathers in a single
  527. integrated environment all the tools needed for the development of Object
  528. Oriented Ada applications and allows developers to increase productivity by
  529. simplifying the repetitive tasks of the programming process.  ObjectAda
  530. includes an Ada compiler which emphasizes compile-time error checking to
  531. reduce mistakes and fully optimized code for compact, high-performance
  532. applications.   A comprehensive, integrated toolset that is easy to use via an
  533. OSF/Motif-based graphical user interface is included in the ObjectAda
  534. environment, allowing programmers to reap the full power of all the tools with
  535. minimum training.  The environment also  includes an Ada sensitive editor,
  536. source-level symbolic debugger, profiler, and additional tools and bindings.
  537.  
  538. Product Name:       AdaWorld for Cross Development Hardware  Hosts: SPARC-
  539. based systems, HP-RT, IBM,
  540.   Targets:  680x0, 80x86, MIPS, PowerPC OS        Solaris, SunOS, UNIX, DOS,
  541. LynxOS
  542.  
  543. For developing embedded, real-time applications, Thomson Software Products+
  544. offers Ada development environments to assure maximum programmer productivity
  545. while generating highly-optimized Ada applications.  Hosted on a broad range
  546. of platforms, each environment includes a  powerful Ada compiler and runtime
  547. system, as well as a comprehensive, integrated toolset that is easy to use via
  548. an OSF/Motif-based graphical user interface. The environment also  includes an
  549. Ada sensitive editor,  multi-library system, source-level symbolic debugger,
  550. profiler, and additional tools and bindings. Ada development environments are
  551. available for cross development targeting the Motorola 680x0, Intel 386/486,
  552. MIPS, and PowerPC.
  553.  
  554.  
  555. Product Name:       ActivAda Hardware  386, 486, or Pentium system OS
  556. Windows, Windows NT, Windows 95
  557.  
  558. ActivAda is an Ada Integrated Development Environment (IDE) delivering the
  559. combined power of 32-bit architecture, the Windows operating system and Ada in
  560. one comprehensive product.  ActivAda+s robust functionality assures reliable,
  561. high-quality code with dramatically reduced development time. ActivAda is
  562. geared to the entire development cycle, providing a Windows Graphical User
  563. Interface (GUI) with full point-and-click access to all development tools.
  564. Development of Win32 applications is possible for both Windows,  Windows NT
  565. and Windows 95.  In addition, a GUI Builder that generates Ada code, Ada
  566. bindings to the Win32s API, a Win32s CodeView Debugger, and an interface to
  567. Microsoft Visual C++ are all included.  All of these features are bundled
  568. together with a validated Ada compiler and comprehensive toolset, providing a
  569. solid technology base that has been in use in major development projects for
  570. over 10 years.
  571.  
  572.  
  573. Product Name:       ActivAda Real-Time Hardware  Hosts:  386/486/Pentium
  574.   Targets:  386/486/Pentium OS        Windows, Windows 95
  575.  
  576. Finally, developers can create tight, fast code for Intel targets from an
  577. easy-to-use Windows environment, while enjoying the full benefits of the Ada
  578. language.  We+ve merged two powerful technologies:  our award-winning ActivAda
  579. development environment, and our highly-optimized Intel cross compilation
  580. system to produce a uniquely powerful and economical real-time development
  581. platform.  ActivAda provides real-time and embedded developers with everything
  582. they need to create cutting-edge, highly reliable Intel target code, all in
  583. one package.
  584.  
  585. Product Name:       perfoRMAx Hardware  Hosts:  PC OS        Windows, Windows
  586. 95, Windows NT
  587.  
  588. perfoRMAx is a unique, easy-to-use graphical tool suite that applies the
  589. mathematical principles of Rate Monotonic Analyst and other scheduling
  590. techniques to your real-time system.  Used during proposal, specification,
  591. design, implementation, and maintenance phases, perfoRMAx can save months or
  592. years of wasted effort, millions of wasted dollars, and can even save lives
  593. and assets.  perfoRMAx is an advanced engineering tool that enables real-time
  594. developers and engineers to focus on the temporal aspects of real-time system
  595. development and maintenance.  Through its unique analysis process, perfoRMAx
  596. provides a framework for analyzing system timing behavior.
  597.  
  598.  
  599. For more information, contact: Marianne Worley Thomson Software Products
  600. (formerly Alsys) 10251 Vista Sorrento Parkway Suite 300 San Diego, CA 92121
  601. Tel:  (619) 457-2700 x244 Toll Free:  (800) 833-0085 x244 Fax:  (619) 452-2117
  602. Email:  adainfo@thomsoft.com WWW: http://www.thomsoft.com/
  603.  
  604.  
  605. Digital Equipment Corporation                       (Updated:  November 1992)
  606.  
  607. Digital Equipment Corporation has bindings available for GKS, PHIGS, SQL, and
  608. OSF Motif for VAX Ada/VMS.  The Ada bindings are provided either as part of a
  609. compiler product or the services/facilities that are provided by Digital and
  610. its suppliers.
  611.  
  612. Host/Target:DEC VAX under VMS
  613.  
  614. For more information, contact:
  615.     Mary Anne Cacciola, Digital Equipment
  616.     Corporation, 110 Spit Brook Road, Nashua, NH  03062,
  617.     USA; Phone:  (603) 881-1028
  618.  
  619.  
  620. IBM                                              (Updated:  November 1992)
  621.  
  622. IBM's AIX Ada/6000 product provides a binding to GPEF and IBM AIXWindows (X-
  623. Windows ... not Motif).  It runs on all models of the IBM RISC System/6000
  624. under the IBM AIX Version 3.2 operating system. See also entries for Systems
  625. Engineering Research Corporation (SERC) and Advanced Technology Center (ATC)
  626. for Motif, GKS or PHIGS bindings for use with IBM AIX Ada/6000 products.
  627.  
  628.  
  629. The AIX Ada/6000 licensed programs (5706-291 and 5706-294) consist of an
  630. optimizing compiler, a run-time environment, a symbolic debugger, an Ada
  631. "makefile" generator for use in automating and minimizing recompilation, Ada
  632. library management tools and Ada language bindings to some key AIX subsystems.
  633. With the exception of some system-specific aspects of the language, the Ada
  634. language for the AIX operating system is source compatible with the Ada
  635. language supported by IBM licensed programs in VM/CMS and MVS.
  636.  
  637. Host/Target:IBM RISC System/6000 under the IBM AIX Version 3.2 operating
  638.     system
  639.  
  640. This product conforms to the following standards:  ANSI/MIL-STD-1815A - Ada at
  641. current level (1.11) of the ACVC test suite.
  642.  
  643.  
  644. For more information, contact:
  645.     Barry Lee, IBM Corporation, 844 Don Mills Road,
  646.     North York, Ontario, Canada  M3C 1V7; Phone:  (416)
  647.     448-3174; Fax: (416) 448-4810
  648.  
  649.  
  650. Objective Interface Systems, Inc.                  (Updated:  November 1992)
  651.  
  652. Objective Interface Systems, Inc., has an Ada binding to X-windows (OSF Motif)
  653. for its Screen Machine~ product.  The Screen Machine binding to Motif includes
  654. a WYSIWYG drawing tool and an Ada code generator.
  655.  
  656. Host/Target:
  657.  
  658. Sun SPARC/SunOS         Rational R1000/Delta    HP 9000/7XX; 8X7 IBM RISC
  659. System/6000/AIXPC 386/486/ISC UNIX     HFSI WIS Workstation PC
  660. 286/386/486/MS-DOS   PC 386/486/SCO UNIX     DEC Ultrix; DEC VMS
  661.  
  662. For more information, contact:
  663.     Phil Carrasco, Object Interface Systems, Inc.
  664.     1895 Preston White Drive, Suite 250, Reston, VA
  665.     22091-5448, USA; Phone: (703) 264-1900; Fax:
  666.     703-264-1721; email info@ois.com (internet)
  667.  
  668.  
  669. SL Corporation                                     (Updated: November 1992)
  670.  
  671. SL Corporation's SL-GMS toolkit includes Ada bindings to GPEF, GPPF, POSIX,
  672. SQL, TCP/IP, OSF/Motif, and Open Look.
  673.  
  674. SL-GMS is a toolkit for developing dynamic graphics screens for real-time or
  675. highly interactive applications.  Non-programmers can design application
  676. screens in a standard drawing-tool mode, connect them to real-time data
  677. sources and animate screen objects to visualize changing data values.  SL-GMS
  678. allows the design of custom "GISMOs" to input values or control the
  679. application and supports MOTIF, OPEN LOOK and other X toolkit widgets.
  680.  
  681. SL-GMS is used extensively to provide real-time graphics for applications in
  682. the fields of manufacturing, process control, network management, avionics and
  683. financial tracking.
  684.  
  685. Host/Target:Validated Verdix and DEC compilers support SL-GMS for the
  686.     following machines as both host and target:
  687.  
  688.  
  689. DEC-DECstation/ULTRIX 4.0DEC-VAXstation/ULTRIX 4.0
  690. DEC-VAXstation/VMS 5.4  DEC-VAXstation/VMS 5.5
  691.  
  692. IBM-RS6000/AIX
  693.  
  694. HP-9000/300/UNIX        HP-9000/400/UNIX
  695. HP-9000/800/UNIX        HP-9000/700/UNIX
  696.  
  697. PC-386/IX UNIX          PC-386/SCO UNIX
  698. PC-386/Lynx             PC-386/0S2
  699. PC-386/System 5.4
  700.  
  701. SGI-4D/IRIX 3.3
  702.  
  703. Sun-3/SunOS 4.1         SunSPARC/SunOS 4.1
  704.  
  705. 88 Open/BCS Compliant
  706.  
  707. For more information, contact:
  708.     Mike Meagher, SL Corporation, 240 Tamal Vista
  709.     Boulevard, Corte Madera, CA  94926, USA Phone: (415)
  710.     927-1724; Fax: (415) 927-2931
  711.  
  712.  
  713. Sunrise Software International                         (Updated:  May 1992)
  714.  
  715. Sunrise Software International's product, ezx, is a rapid application
  716. development tool that automates the creation of graphical user interfaces for
  717. OSF/MOTIF and generates C, UIL, or Ada.  ezx provides WYSIWYG screen layout;
  718. color, font and pixmap editors; presentation tools and dialog management.  A
  719. prototype can be developed in hours and using a script language similar to
  720. Hypertalk, demonstrated to end-users before the first line of code is written.
  721. Then portable C, UIL or Ada can be generated automatically.  Ada bindings are
  722. provided.  The total code required to develop a GUI is reduced by
  723. approximately 75%.   The appearance and behavior of the GUI is defined in an X
  724. resource file which the application loads at run time.  This provides explicit
  725. separation between the GUI and the computational core of the application. Thus
  726. the GUI can be revised without recompiling (and retesting) the application.
  727.  
  728. ezx provides cost savings throughout the software development cycle, from
  729. requirements analysis through design, code, test and maintenance.
  730.  
  731.  
  732. Host/Target:DEC RISC under ULTRIX, DEC VAX under VMS, IBM 386 under UNIX, IBM
  733.     RS 6000 under AIX, SGI under, SUN SPARC under UNIX
  734.  
  735. For more information, contact:
  736.     Frederick Sells, Sunrise Software International,
  737.     170 Enterprise Center, Middletown, RI  02840, USA;
  738.     Phone:  401-847-7868
  739.  
  740. Systems Engineering Research Corporation (SERC)     (Updated:  November 1992)
  741.  
  742. -----------------------------------------------------------------------------
  743. Subject: 235)  Is there an Ada binding for Motif? (Part 2 of 2)
  744. [Last modified: Apr 94 ]
  745.  
  746. Answer: (This answer hasn't changed since the date given, but I needed to
  747. break it into 2 parts.)
  748.  
  749. SERC's Ada/MOTIF is a complete binding to X Window and OSF/Motif for the Ada
  750. programming language that was based in part upon the SAIC/Unisys (STARS)
  751. public domain bindings.  That work was leveraged as a starting point for this
  752. development; many of the bug fixes and additional capabilities beyond the
  753. public domain releases in Ada/MOTIF have been incorporated.  Most noteworthy
  754. are the capabilities included in Ada/Motif for Ada tasking, callback
  755. registration, memory leak detection/prevention and capabilities for developing
  756. customized widgets.  Paramax/STARS considers Ada/Motif to be the commercial
  757. version of their STARS bindings, according to SERC.
  758.  
  759. Ada/MOTIF is supported by the ALSYS, VERDIX, SUNAda, IBM Ada, and SGI Ada
  760. compilers.
  761.  
  762.  
  763. Host/Target:SUN 4, HP 300/400, HP 700, IBM RS 6000, SGI, 386
  764.     SUN OS 4.1.1, SOLARIS 2.0 (coming), HPUX 8.0, SGI 3.2 & 4.0, IBM
  765.     ATX 3.2, SCO 3.2
  766.  
  767. For more information, contact:
  768.  
  769. Theo Kusiolek or Scott Cleveland, Systems Engineering Research Corporation
  770. (SERC), 2555 Charleston Road, Mountain View, CA  94043, USA; Phone:  800-ADA-
  771. SERC or 415/962-9092; Fax:  415/962-0330; E-mail:  Well!sercmail@apple.com.
  772.  
  773.  
  774. TeleSoft                                            (Updated:  November 1992)
  775.  
  776. TeleSoft's TeleUSE/Ada automates the creation of OSF/Motif graphical user
  777. interfaces for Ada applications.  It includes a special version of the TeleUse
  778. User Interface Management System -- which generates Ada source code -- and Ada
  779. bindings to the TeleUSE run-time routines.
  780.  
  781. TeleUse/Ada tools allow a GUI to be prototyped and designed using a WYSIWYG
  782. editor and a PDL, and also includes tools for debugging, generating production
  783. code and maintaining the GUI.  TeleUse/Ada can save the developer up to 90
  784. percent of the time required to hand code X Window System GUIs.
  785.  
  786. Host/Target:SPARC under UNIX, Sun-4 under UNIX
  787.  
  788. TeleSoft's TeleWindows is a set of Ada bindings to the X Window System and
  789. OSF/Motif.  This includes Xlib, XT, X extensions Library, XT+, X miscellaneous
  790. utilities, Motif widget set, XM, MWM, Motif resource manager.  It supports X-
  791. 11 R4 and is not based on the public domain version.  It closely follows the C
  792. Xlib syntax and allows Ada applications to co-exist with C applications.
  793.  
  794. Host/Target:IBM System/370 under VM/CMS
  795.  
  796. For more information, contact:
  797.     Karen Johnson, TeleSoft, 5959 Cornerstone Court
  798.     West, San Diego, CA  92121-9891, USA; Phone:  (619) 457-2700
  799.  
  800.  
  801. Verdix                                              (Updated:  May 1992)
  802.  
  803. The Verdix Ada Development System (VADS), is a complete Ada Compiler System
  804. offering a fully validated Ada compiler with chapter 13 support.  Verdix
  805. supplies VADSself and VADScross.   VADSself provides a complete toolset for
  806. self-targeted applications.  It easily interfaces to databases, windowing
  807. systems and program management tools.  VADScross provides real-time support
  808. for host-to-target system development.  VADScross produces small and fast
  809. object code.  VADS is hosted on the largest number of platforms and targets
  810. the greatest number of microprocessors.
  811.  
  812. Host/Target:88000 BCS under UNIX, DEC VAX under VMS / ULTRIX / UNIX,
  813.     DECStation (RISC) under UNIX, DECSystem (RISC) under UNIX, HP 9000
  814.     Series 300 under HP-UX  (UNIX), IBM PS/2 under AIX  (UNIX), IBM
  815.     RISC System/6000 under AIX, SCO Systems V/386 (ABI) under UNIX,
  816.     Sun SPARC systems under UNIX, Sun-3 systems under UNIX
  817.  
  818. Verdix AXI provides an Ada binding to the full Motif, Xt, and Xlib libraries.
  819. The product works with user-supplied Motif 1.1 and X11R4 libraries regardless
  820. of source.
  821.  
  822. Host/Target:DEC RISC under Ultrix, IBM RS6000 under AIX, MIPS under MIPSos,
  823.     Sun-4 under SunOS, Sys V386 under ISC UNIX, Sys V386 under SCO
  824.     UNIX
  825.  
  826. For more information, contact:
  827.     Tim Ruhe, Verdix Corporation, 205 Van Buren,
  828.     Herndon, VA  22070, USA; Phone:  (703) 318-5800
  829.  
  830. Answer: Integrated Computer Solutions, Inc. (ICS) supplies Ada bindings to
  831. Motif for a number of platforms and Ada compilers.  ICS also provides Builder
  832. Xcessory, a Motif interface builder, which outputs Ada code usable with the
  833. Ada bindings.  The product family is known collectively as the Ada Xcessories.
  834.  
  835. Integrated Computer Solutions, Inc. (ICS) 201 Broadway, Cambridge, MA  02139
  836. USA info@ics.com   617/621-0060
  837.  
  838. -----------------------------------------------------------------------------
  839. Subject: 236)  Is there a Poplog binding for Motif?
  840. [Last modified: May 93]
  841.  
  842. Answer: A integrated programming environment consisting of the programming
  843. languages Pop-11, Prolog, Standard ML, and Lisp which are compiled to machine
  844. code via a common virtual machine. Pop-11 provides a rich interface to the X
  845. Toolkit which can be accessed from all other Poplog languages. The OLIT,
  846. Motif, and Athena widget sets are supported, in addition to the custom Poplog
  847. (Xpw) widget set. XVed provides a sophisticated, customisable multi-window
  848. editor. Under OPEN LOOK and Motif the Poplog User Interface (PUI) provides a
  849. graphical interface to the Poplog system. High-level Pop-11 libraries allow
  850. graph drawing, turtle graphics, and the simple creation of basic button/menu
  851. based interfaces.
  852.  
  853. Contact:
  854.  
  855. UK EDUCATION SITES:
  856. Poplog Sales. School of Cognitive and Computing Sciences.
  857. Brighton. BN1 9QN. England.
  858. Phone: +44 (0)273 678188
  859. Email: popsales@cogs.susx.ac.uk
  860. USA AND CANADIAN EDUCATION SITES:
  861. Computable Functions Inc. 35 South Orchard Drive. Amherst.
  862. MA 01002. USA.
  863. Phone: (413) 253-7637
  864. ALL OTHER SALES:
  865. Integral Solutions Ltd. Unit 3, Campbell Court. Bramley.
  866. Basingstoke. Hampshire. RG26 5EG. England.
  867. Phone:  +44 (0)256 882028
  868. Fax:    +44 (0)256 882182
  869. Email:  isl@integ.uucp
  870.  
  871.  
  872. -----------------------------------------------------------------------------
  873. Subject: 237)  TOPIC: SPECIFIC PLATFORMS
  874.  
  875. -----------------------------------------------------------------------------
  876. Subject: 238)  Is it easy to build Motif for a Sun?
  877.  
  878. Answer: See next question for Solaris 2.  No pattern has emerged to problems
  879. about compiling Motif on the Sun (although people seem to have a lot of
  880. different minor problems), and many reports are that it is straightforward.
  881. Read the Motif install instructions (which often have specific reference to
  882. Sun installation), light the blue touch paper and just standback. [My
  883. experience was that I had to add -D_NO_PROTO for 1.1 on a Sparc OS 4.1, and
  884. that was all.  Others have added STRINGS_ALIGNED and NO_REGEXP].
  885.  
  886. -----------------------------------------------------------------------------
  887. Subject: 239)  How do I build Motif 1.2.2 on Solaris 2.1 with Sun C?
  888. [Last modified: Oct 94]
  889.  
  890. Prepared by Ric Steinberger.  ric@updike.sri.com  4/09/93
  891.  
  892. What follows is a description of the steps I used to build Motif 1.2.2 on a
  893. SUN IPX running Solaris 2.1.  Sun's C compiler (2.0.1) was used.  Many thanks
  894. go to Kaleb Keithley (kaleb@devvax.jpl.nasa.gov) for several useful
  895. suggestions.  Other people, including OSF staff, especially David Brooks
  896. (dbrooks@osf.org), helped as well.  My thanks to you all.
  897.  
  898. 1. Build X11R5 from the mit distribution.  You need to retrieve the sources
  899. from ftp.x.org (in pub/R5) and patches 1 - 22 (or fixes 1-26) pub/R5/fixes).
  900. There are several other sites that contain the X11R5 sources.  After
  901. installing patch 19, apply PEXlib.tar.Z, also available from ftp.x.org in
  902. pub/R5/fixes.  You can apply also R5.Xsun.multi-screen and R5.SunOS5.patch.
  903. There are .README files that explain how to patch.  Be SURE to read
  904. R5.SunOS5.patch.README for details on how to BUILD X11.  You probably want to
  905. use the ProjectRoot feature in the site.def file in the mit/config directory.
  906. You will NEED to edit that file to do that.
  907.  
  908. 2. Obtain the Motif 1.2.2 distribution from OSF (617-621-7300).  You may need
  909. to first install the 1.2 tape, then the 1.2.1 and finally the 1.2.2 tape.  You
  910. might want to do a "chmod -R u+w ." after unloading each tape.
  911.  
  912. 3. In the config directory, there are several changes.  Some of the changes
  913. are based on R5.SunOS5.patch files.  A complete set of config files relevant
  914. to Solaris have been placed in the anon-ftp account of updike.sri.com in
  915. pub/motif/solaris21-motif122-config.tar.Z.  They are also available from OSF
  916. on their mail response server (available to support contract holders) and they
  917. will send them directly to full support contract holders.  Decompress and
  918. untar this file in your Motif config subdirectory.  Copy site.def.sample to
  919. site.def, then edit site.def.  You will probably want to uncomment the
  920. ProjectRoot section and use the same value used in your X11R5 build.  Also,
  921. you will probably want to use /usr/ucb/install in you installed the UCB
  922. compatibility suite.  Otherwise you might want to use the install supplied at
  923. the end of this memo.  [I used the UCB version and can't swear that this
  924. works.  Bit it should.  Put it someplace like /usr/local/bin and chmod +x it.]
  925.  
  926. There are two patches to consider.  One fixes a cursor problem in
  927. ./lib/Xm/TextF.c.  The other removes a Berkeleyism.  These patches should
  928. probably be consider unofficial at present.  Failure to deal with the
  929. Berkeleyism (bzero) means you will need to link with -lucb -lelf.  This will
  930. probably work, but why bother?  Furthermore, if you move the Motif binaries to
  931. a machine without the ucb compatability suite, you won't have the sharable
  932. libs you need.
  933.  
  934. [The actual patches have been censored because they contain OSF source code]
  935.  
  936. Patch 1: In TextF.c there are several places _XmTextFieldDrawInsertionPoint is
  937. called. These should be moved two or three lines further down *after* the "if
  938. (!XtIsRealized(tf)) return True;" statement.
  939.  
  940.  
  941. patch 2: The call to bzero in lib/Xm/Visual.c should be replaced by the
  942. equivalent call to memset
  943.  
  944.  
  945. Both these patches can be applied in the ./lib/Xm directory.  If you don't
  946. have the patch program (how did you build X11?), you can get it in the
  947. vendor/cygnus directory of ftp.uu.net, or you can build it from source.  Be
  948. sure to get the latest version (2.0.12.u8).
  949.  
  950. 4) Use the README-1.2.1 file as a guideline for building motif.  I followed
  951. directions in the section called, "Using X11R5 Installed Libraries and Header
  952. Files."  If you make a mistake after your first build attempt, copy
  953. Makefile.ini to Makefile before retrying.  You may need to do this in the
  954. config subdirectory too, depending on what went wrong.
  955.  
  956. 5) After make Makefiles, do make includes, make depend, then make (or as OSF
  957. recommends, make -k).  This gets as far as motifshell in the demos, which
  958. fails to build because O_RDONLY and L_XTND are not defined.  O_RDONLY is in
  959. fcntl.h (actually <sys/fcntl.h>, but fcntl.h includes this.)  L_XTND can be
  960. replaced by SEEK_END.  SEEK_END is in stdio.h.  These two fixes will allow
  961. motifshell to build.  Note: many MANY compiler warning messages will be
  962. generated during the build process.
  963.  
  964. 6) You can go to the demos/xmsamplers directory and do a make there.  Other
  965. demos may build, or not depending on whatever. . . .
  966.  
  967. 7) make install will do the install.  [It will fail at motifshell if you don't
  968. fix it, as mentioned above.]  You can do a make install in demos/xmsamplers if
  969. you want these.
  970.  
  971. 8) If running on a SUN (as opposed to an X term), you will (probably) need to
  972. start openwin with something like:
  973.  
  974. openwin -server /usr/X11R5/bin/Xsun
  975.  
  976.  
  977. [You might want to use an alias for this.] This fixes an annoying problem: The
  978. mouse keys stop working after you click on an icon to get the icon menu (on
  979. SUNs only, not X terms).  The ALT keys still work, if you get stuck.  I don't
  980. know whether this is a bug in SUN's server or whether it is Motif related.
  981.  
  982. Here is a copy of my .xinitrc:  It's not elegant.  Sun's default openwin
  983. startup file is in: /usr/openwin/lib/Xinitrc.  You can copy this to ~/.xinitrc
  984. and customize as desired.  Obviously, the default behavior is to start the
  985. OpenLook environment (boo!).
  986.  
  987.  
  988. #!/bin/sh
  989. #
  990. # .xinitrc - OpenWindows startup script.
  991. #
  992. if [ -f $HOME/.Xdefaults ]; then
  993. xrdb $HOME/.Xdefaults              # Load Users X11 resource database
  994. fi
  995. if [ -f $HOME/.Xdefaults.sun ]; then
  996. xrdb -merge $HOME/.Xdefaults.sun
  997. fi
  998. DISPLAY=`hostname`:0.0
  999. export DISPLAY
  1000. xhost + > /dev/null
  1001. #xterm -sb -sl 512 -T `hostname` -ls -n `hostname` &
  1002. xterm -sb -sl 512 -T `hostname` -n `hostname` &
  1003. mwm &
  1004. xclock -geometry +1010+0 &
  1005. xload -geometry +710+5 -fg red &
  1006. xsetroot -solid salmon &
  1007. xterm -sb -sl 100 -T CONSOLE_DO_NOT_LOGOUT -C -n console -iconic
  1008. #wait
  1009.  
  1010. Here's .Xdefaults.sun, which gives me a more readable font for use with
  1011. motif on Sun monitors:
  1012.  
  1013. !Some additional .Xdefaults values specifically for SUN
  1014. !
  1015. ! After loading .Xdefaults, xrdb -merge .Xdefaults.sun
  1016. !
  1017. Mwm*fontList:           8x16
  1018. !Mwm*fontList:          vtbold
  1019. !Change as desired.
  1020.  
  1021.  
  1022. You will probably want to maintain LD_LIBRARY_PATH to something like:
  1023. /opt/SUNWspro/lib:/usr/ccs/lib:/usr/ucblib:/usr/X11R5/lib:/usr/lib:
  1024. /usr/openwin/lib.  If you use emacs, you will need to leave /usr/openwin/lib
  1025. there.  [This is because you probably, like me, used the distributed version
  1026. of s-sol2.h, which explicitly refers to windowing libraries as being in the
  1027. /usr/openwin locations.  Yes, I know that emacs/Solaris ought to allow
  1028. LibXt.so.N.M to be "picked up" from elsewhere, like /usr/X11R5/lib, but the
  1029. one emacs links with is LibXt.so.4.something, and the mit one is
  1030. LibXt.so.5.something.  So it seems to want the .4 one.  Any comments?  I'd
  1031. prefer not to rebuild emacs based on the X11R5 libs because I occassionally
  1032. need to move the emacs binaries to machines without the mit files.]
  1033.  
  1034. -----------------------------------------------------------------------------
  1035. Subject: 240)  What compile errors/warnings might I get in both Sun 3 and Sun
  1036. 4?
  1037.  
  1038. Answer:
  1039.  
  1040.  
  1041. make: Warning: Too many rules defined for target
  1042. make: Warning: Too many rules defined for target
  1043. "callbacks.c", line 1530: warning: illegal combination of pointer
  1044. and integer, op =
  1045. "callbacks.c", line 1531: warning: illegal combination of pointer
  1046. and integer, op =
  1047. "callbacks.c", line 1532: warning: illegal combination of pointer
  1048. and integer, op =
  1049. "utils.c", line 73: warning: illegal combination of pointer and integer, op =
  1050. "utils.c", line 74: warning: illegal combination of pointer and integer, op =
  1051. "utils.c", line 122: warning: illegal combination of pointer and integer, op =
  1052. "utils.c", line 123: warning: illegal combination of pointer and integer, op =
  1053. "utils.c", line 191: warning: illegal combination of pointer and integer, op =
  1054. "utils.c", line 194: warning: illegal combination of pointer and integer, op =
  1055. "utils.c", line 195: warning: illegal combination of pointer and integer, op =
  1056. "utils.c", line 196: warning: illegal combination of pointer and integer, op =
  1057. "utils.c", line 316: warning: illegal combination of pointer and integer, op =
  1058. "utils.c", line 334: warning: illegal combination of pointer and integer, op =
  1059. "utils.c", line 338: warning: illegal combination of pointer and integer, op =
  1060. "utils.c", line 341: warning: illegal combination of pointer and integer, op =
  1061. "xmdialogs.c", line 838: warning: illegal combination of pointer
  1062. and integer, op =
  1063. "xmeditor.c", line 1152: warning: illegal combination of pointer
  1064. and integer, op =
  1065.  
  1066. These warning messages can be ignored. OSF is aware of these warnings.
  1067.  
  1068.  
  1069. -----------------------------------------------------------------------------
  1070. Subject: 241)  On a Sun 3, what are the mwm startup error messages about?  I
  1071. get
  1072.  
  1073. mwm: Invalid accelerator specification on line 7 of
  1074. specification string
  1075. mwm: Invalid accelerator specification on line 31 of
  1076. configuration file
  1077.  
  1078.  
  1079. Answer: This is because some Sun keyboards do not have an F10 key and some sun
  1080. workstations which have an F10 key do not have X-servers which recognize it.
  1081. The F10 key is used by mwm.  If the machine does have an F10 key, the user
  1082. should use xmodmap to tell the server it exists.  Otherwise, change the
  1083. definition of the DefaultWindowMenu in /usr/lib/X11/system.mwmrc (after
  1084. installation) or in /lib/clients/mwm/system.mwmrc (before installation).
  1085. Change the accelerator of "Maximize" (it is "Alt<Key>F10)" to something else.
  1086. Also, you should change the definition of DEFAULTSYSTEMMENU in the file
  1087. /clients/mwm/WmResource.c in a similar fashion.  There is as yet no standard
  1088. redefinition for F10.
  1089.  
  1090. -----------------------------------------------------------------------------
  1091. Subject: 242)  Are there problems making shared libraries on a Sun?
  1092.  
  1093. Answer: If you use the -pic option you may run out of offset table space.  use
  1094. the -PIC option instead.
  1095.  
  1096. You may get the message "ld.so: Undefined symbol: __XtInherit" when executing
  1097. UIL. There is a problem in shared library build when you compare a function
  1098. variable to a routine name, but don't call the routine.  Either, you can build
  1099. the Xt library nonshared, or you can put a reference to XtToolkitInitialize in
  1100. the UIL main program (or even include a module that references it).  The
  1101. routine doesn't even have to be called; it just has to be there.
  1102.  
  1103. -----------------------------------------------------------------------------
  1104. Subject: 243)  Why does the OpenWindows server hangs when I popup a menu with
  1105. Button 3?
  1106. [Last modified: August 92]
  1107.  
  1108. Answer: This is an OpenWindows problem, but if you have Motif source you can
  1109. fix your own applications. From Steve Sistare of Thinking Machines Corp.:
  1110. "Change the 2 calls to XtGrabButton in RowColumn.c such that ButtonReleaseMask
  1111. | ButtonPressMask is passed for the event mask.  Currently, only
  1112. ButtonReleaseMask is passed.  Also, change the owner_event argument to FALSE.
  1113. " This has not been fixed in Motif as at 1.1.5.
  1114.  
  1115. -----------------------------------------------------------------------------
  1116. Subject: 244)  Has anyone made shared libraries on an IBM RS/6000?
  1117.  
  1118. Answer: [NOTE: This may not a problem any longer; I believe that AIX is now
  1119. delivered with shared Xm libraries. If you know the status of this, email
  1120. kenton@nojunk.rahul.net.]
  1121.  
  1122. Sakari Jalovaara wrote: There is a problem: Xm redefines VendorShell and the
  1123. AIX linker put _both_ Xm's and Xt's VendorShell into programs.  When an AIX
  1124. shared library is created as many references inside the library are resolved
  1125. as possible.  If the symbol vendorShellClassRec is defined in libXt and
  1126. referenced, say, from a function XtFoo() also in libXt, the "ld" run that
  1127. creates the shared library resolves the reference:
  1128.  
  1129. XtFoo() -> vendorShellClassRec
  1130.  
  1131. Then I create the Motif library that has its own vendorShellClassRec and an
  1132. XmBar() function that uses it; libXm will also contain a resolved reference to
  1133. vendorShellClassRec:
  1134.  
  1135. XmBar() -> vendorShellClassRec
  1136.  
  1137. Finally, I link a program that uses both XtFoo() and XmBar() and the program
  1138. will end up with _two_ independent "vendorShellClassRec"s:
  1139.  
  1140. XtFoo() -> vendorShellClassRec [Xt version]
  1141. XmBar() -> vendorShellClassRec [Xm version]
  1142.  
  1143. Instant schizo zaphod mode.  In reality, vendorShellClassRec is not referenced
  1144. from functions but from other widget class records.
  1145.  
  1146. I can't just pull Vendor.o out from the shared Xt (Vendor.o appears to define
  1147. the only external symbols redefined by libXm) because AIX shared libraries
  1148. apparently can't contain unresolved external references.  If I take out
  1149. Vendor.o I have to take out every other file that uses symbols defined there -
  1150. and then files that need those files, etc.  I tried it and ended up with three
  1151. or four object files in libXt and the res non-sharable.
  1152.  
  1153. I kludged around this by putting all of libXt (minus Vendor.o) into the shared
  1154. libXm.  It isn't a pretty solution but it works - and beats having a
  1155. statically linked two-megabyte "periodic" demo...
  1156.  
  1157. -----------------------------------------------------------------------------
  1158. Subject: 245)  What is the error  "Unaligned access in XmString" under Ultrix?
  1159.  
  1160. Answer: Compile XmString.c with STRINGS_ALIGNED.
  1161.  
  1162. -----------------------------------------------------------------------------
  1163. Subject: 246)  Can bugs in Sun's OpenWindows server cause Motif clients to
  1164. crash?
  1165. [Last modified: Oct 95]
  1166.  
  1167. Answer: Yes.  Patch 100444-73 (or later) from Sun fixes most of these bugs.
  1168. Alternatively, you can compile and run the X11R6 sample server from MIT.  See
  1169. the SunSolve web page:
  1170.  
  1171. http://sunsolve1.sun.com/pub-cgi/patchpage.pl
  1172.  
  1173. Ken Lee and Bob Cox, rwcox@mcw.edu.
  1174.  
  1175. -----------------------------------------------------------------------------
  1176. Subject: 247)  Why does Motif on Linux crash when I open a file selection box?
  1177. [Last modified: Oct 98]
  1178.  
  1179. Answer: Make sure you use a libc that is compatible with your Motif.
  1180. Unfortunately, Linux libc is not binary compatible from release to release.
  1181. Older versions of Motif require libc 4.6.27.  Some newer Motifs need libc5;
  1182. others need glibc.
  1183.  
  1184. Ken Lee, http://www.rahul.net/kenton/
  1185.  
  1186. -----------------------------------------------------------------------------
  1187. Subject: 248)  Are there compatibility problems between some Linux Motif
  1188. libraries and libc5 or glibc?
  1189. [Last modified: Oct 98]
  1190.  
  1191. Answer: Yes.  People have reported problems with the file selection box and
  1192. also with the OSF keysyms.
  1193.  
  1194. The problem is that some newer Linux packages (e.g., Red Hat 5.0) use glibc
  1195. (library and associated header files), which is not binary compatible with the
  1196. older libc5.  Some newer Motif libraries use glibc, while older ones will use
  1197. libc5.  Similarly the XFree and other libraries will be based on either libc5
  1198. or glibc.  You must make sure you use one other the other consistently for all
  1199. your applications and libraries.  The better Motif vendors should have an
  1200. upgrade strategy in place to help you with the transition.
  1201.  
  1202. This is a general problem that the Linux community is dealing with.  If you
  1203. can't get the correct version information from your Motif vendor, the Linux
  1204. Usenet newgroups should be able to help you out.
  1205.  
  1206. Ken Lee, http://www.rahul.net/kenton/
  1207.  
  1208. -----------------------------------------------------------------------------
  1209. Subject: 249)  How can I install Motif on my PC?
  1210. [Last modified: Jun 98]
  1211.  
  1212. Answer: There's a paper on this in the September, 1995 issue of *The X
  1213. Advisor*:
  1214.  
  1215. http://www.rahul.net/kenton/txa/sep95.html
  1216.  
  1217.  
  1218. A 1996 update to this article is available at:
  1219.  
  1220. http://www.rahul.net/kenton/xlinux_update.html
  1221.  
  1222. Ken Lee
  1223.  
  1224. -----------------------------------------------------------------------------
  1225. END OF PART SEVEN
  1226.