Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!bionet!agate!ucbvax!osf.org!wwang From: wwang@osf.org ("Weidong Wang from OSF") Newsgroups: comp.windows.x.motif Subject: Re: Compiling Motif on Sun Message-ID: <9104221656.AA03097@osfsun> Date: 22 Apr 91 09:56:17 GMT References: <1399@phcisa.UUCP> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 80 > Hello, > > We are currently planning to start working with Motif on Sun workstations. > Can anybody tell us whether there are major problems to expect when > trying to install the Motif sources from OSF on Sun Workstations ? > I replied to someone several days about the same question, but I did not send to the whole group. This time I guess I should cc to the group. I assume you are installing Motif 1.1and you have X11R4 installed on your system. Follow the steps below: 1. load the tape. 2. patch X11R4. On 1.1 tape, there are 14 mit official patches and one OSF fix called fix-osf. If you also have 1.1.1 tape, there are another 4 mit patches and one fix-osf-1.1.1. If you have all 18 mit fixes, apply them first, then apply fix-osf-1.1.1, throw away fix-osf. If you only have 14 mit patches, try first to get the other 4. If you can't, apply 14 patches, then osf-fix. If later you get fix-15 through fix-18, back out fix-osf first before applying 15 to 18. After applying the patches, rebuild and reinstall X11R4. 3. Go to the top of Motif tree and enter "make World". This will start the building process. Depending where you put Motif source, you may get error message and build aborts because of extension lib. In this case, fix sun.cf and Motif.tmpl accroding to thefollowing: SUN LIBRARIES To use the pre-installed libraries on a Sun platform, make the following changes to the file config/sun.cf: a. Change the SYSLIBS line and add MWM_DEFINES, so that line 7: SYSLIBS=$(MTOOLKITSRC)/libXt.a $(XLIBSRC)/libX11.a is replaced by the following two lines: SYSLIBS=-lXt -lX11 MWM_DEFINES=-DSHAPE -DOPAQUE b. Append these lines to config/Motif.tmpl before executing "make Makefiles": #if NeedDefaultDepLibs /* */ #if HasSunOSSharedLibraries DEPLIBS = /* */ #else DEPLIBS = $(LOCAL_LIBRARIES) #endif DEPLIBS1 = $(DEPLIBS) DEPLIBS2 = $(DEPLIBS) DEPLIBS3 = $(DEPLIBS) #endif /* NeedDefaultDepLibs */ And go back to the top and enter make World. When it finishes, enter make install to install it. 4. If you are running SunOS 4.0.3, the build process may stop in some demo directories because of limits.h could not be found. Two ways to fix it: 1). create an empty /usr/include/limits.h; 2). comment out the lines that include it. Motif does not actually ned it. 5. By now, you should be able to get it going.Good Luck. Weidong Wang Systems Engineering, OSF