Path: utzoo!attcan!uunet!seismo!ukma!cwjcc!tut.cis.ohio-state.edu!bloom-beacon!odi.COM!bob From: bob@odi.COM (Bob Miner) Newsgroups: comp.windows.x Subject: Re: Help with MOTIF on Suns Message-ID: <8909082032.AA01727@hendrix.odi.com> Date: 8 Sep 89 20:32:30 GMT References: <5534@inco.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 58 > Has anyone out there gotten Motif to run on a Sun machine of any > flavor? Yes. I've gotten both snapshot 11 and release 1.0 running on Sun3's, SunOS 4.0.3 with the Sun cc compiler with minimal effort. Below are what I would recommend you do to build Motif 1.0 (I can't speak for earlier releases, but why would you want to build them anyways?): * First, read the porting guide in one of the ./doc/releasePorting directories. * Look at the file ./util/imake.includes/Sun.macros and make sure that the OS version is correct. Look around to see if anything else should be changed for your particular situation. * Go to the top motif directory and follow the instructions on page 4 of the releasePorting documentation. Basically this amounts to doing a 'make Makefile' to make ./Makefile, doing a 'make Makefiles' to make all the Makefiles in lower directories, doing a 'make depend' to add dependencies to your Makefiles and then doing a 'make' to actually do the build. You may also want to remove TESTSRC\ from DIRSTOMAKE in the top level Makefile if you want to avoid 200+ Mb of testing stuff. I did. * Once the make is finished, you probably had some errors. Errors that I encountered and fixed were: - Mrmtime.c includes time.h. It doesn't need to as it's also included in Xos.h, so just remove it and remake. I sent a bug report in on this one. - WmResource.c has the default function key bindings, one of which, maximize, binds F10. My Sun3 keyboard doesn't have an F10, so I changed it to F6. This isn't a bug. - Some of the demo programs wouldn't build because they included limits.h. Just remove that include and rebuild and they'll work fine. Someone else has sent a bug report in on this one. That's it. As I said, not that complex. I didn't do a make install because I didn't want to overwrite existing X11R3 includes and libraries. Instead, I manually moved includes to /usr/include/Xmotif/{X11,Xm,Mrm} directories. So when compiling with Motif, I specify -I/usr/include/Xmotif to get Motif include files before X11R3 versions. I also moved the Motif libXt.a to /usr/lib/libXtm.a, so I can link against either the Motif intrinsics or the X11R3 intrinsics. If Motif 1.1 uses the vanilla X11R4 intrinsics, the need to keep two versions of the intrinsics will disappear then. If you don't do a make install, you'll also need to do a 'build.docs longnames' to expand the names of man page files to their longer names. Good Luck, Bob Miner Object Design Inc. Internet: bob@odi.com 1 New England Executive Park Or: odi!bob@uunet.uu.net Burlington, MA 01803 Or: odi!bob@eddie.mit.edu (617) 270-9797