Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!pp!milano!titan!janssen@titan.sw.mcc.com From: janssen@titan.sw.mcc.com (Bill Janssen) Newsgroups: comp.windows.x Subject: Re: Andrew Toolkit Installation - HELP !! Summary: How to install it on Suns from X11R3 Keywords: X11 Andrew Toolkit Message-ID: <1833@titan.sw.mcc.com> Date: 29 Dec 88 22:27:12 GMT References: <197@h.cs.wvu.wvnet.edu> Sender: janssen@titan.sw.mcc.com Organization: MCC Software Technology Lines: 84 In-reply-to: dymm@g.cs.wvu.wvnet.edu (David Dymm) Here's what I had to do to get Andrew compiled: ---- Setting up the environment: In "andrew/config/andrewenv.h": Set LEVEL_ENV to 4. Defined X11_ENV. DITROFF_ENV defined. (MCC STP has ditroff in /usr/andrew/bin) RESOLVER_ENV defined (though I don't really know!). added new var MCC_STP_ENV defined to 1 (for our print commands) In "andrew/config/Sun.macros": XBASEDIR set to "/stp/X11" XSRCDIR set to "/stp/src/X11R3" DESTDIR set to "/stp/andrew" In "andrew/atk/support/print.c" Added new section of print contants (such as print_PRINTCOMMAND) conditionally defined if MCC_STP_ENV is defined. This tells Andrew how to invoke troff. Include "andrew/config/andrewenv.h". In "andrew/atk/ltext/ltext.c" Added indentation for "defclass" and "defmethod". In "andrew/overhead/util/lib/andrewdir.c" Set default Andrew root path to "/stp/andrew". ---- Preparing to build The build instructions assume that andrew is a subdirectory of contrib. I moved the Imakefile from X11R3/contrib to X11R3/contrib/toolkits, and removed the references to other subdirectories of X11R3/contrib. In X11R3/contrib/toolkits/Imakefile, changed AndrewMakefiles:: $(RM) andrew/Makefile.bak -$(MV) andrew/Makefile andrew/Makefile.bak cd andrew; ../$(IMAKE) -DTOPDIR=. -TImake.template\ -Iconfig -s Makefile to AndrewMakefiles:: $(RM) andrew/Makefile.bak -$(MV) andrew/Makefile andrew/Makefile.bak cd andrew; $(IMAKE) -DTOPDIR=. -TImake.template\ -Iconfig -s Makefile which is just removing the relative location of the imake program. Used imake to make the Makefile: /stp/src/X11R3/util/imake/imake -DTOPDIR=/stp/src/X11R3 \ -T /stp/src/X11R3/util/imake.includes/Imake.tmpl -s mm Modified X11R3/contrib/toolkits/andrew/overhead/util/lib/andrewdir.c, changing the string "/usr/andrew" to "/stp/andrew". This defines the default setting of the environment variable ANDREWDIR. ---- Build: cd /stp/src/X11R3/contrib/toolkits make -f mm AndrewMakefiles cd andrew make Makefiles make World First error occurred while attempting to build andrew/atk/basics/xfontdesc.o, in that the file $(XBASEDIR)/include/X11/cursorfont.h was not in place. Copied it from x11r3/X11/cursorfont.h, and said "make World" again. Received a number of apparently harmless error messages from the "make depend" steps, along the lines of "cannot find file foo.eh". ---- That's it! Good luck. Bill