How To Compile MiXViews
If you work on a platform other than:
- M68k NeXT
- Sun SPARC
- SGI IRIX 5.x
then you may wish to comple MiXViews yourself from the source code. This is a
bit of work, but well worth it for what you can do with this program for free.
You will need the following resources in order to compile MiXViews:
1. A decent C++ compiler (Gnu g++ 2.7.2, for example). This is available on
prep.ai.mit.edu as: gcc-2.7.2.tar.gz
2. The tarred, compressed source for MiXViews, available on ftp.ccmrc.ucsb.edu
3. The X11 R5 or R6 binaries, libraries, config files, and headers, installed.
4. The complete distribution of the InterViews 3.1 or 3.2a C++ X toolkit,
configured, compiled, and installed. This is the most complex step -- study the
included README file before attempting to configure or compile InterViews. The
source is available on:
- interviews.stanford.edu (v. 3.1, OK)
- sgi.com (v. 3.2a, BETTER)
5. The Gnu libg++ library distribution, configured, compiled, and installed. The
newest version will supposedly compile under Cfront-style compilers as well as
under Gnu's compiler. It is available on prep.ai.mit.edu as: libg++-2.7.0.tar.gz
6. The f2c.h header file (minimally) plus the compiled and installed library, or
else an equivalent fortran library (typically libF77.a). The f2c source is
public domain and available in many of the software archives.
Once all the above are on your system, and you have untarred the source for
MiXViews into some directory, make sure that the environmental variable CPU is
set (see the InterViews documentation for more on this). You will no doubt have
to edit the Imakefile that comes with MiXViews to set some macros such as the
name of your fortran library, and to adjust the compiler flags, though most of
this should be configured in the InterViews config files.
Before you do the ivmkmf and make, you need to set an environmental variable
"CPU" to the correct type for your machine. Here are the values:
Sgi Indy, Indigo: SGI
Sun: SUN3, SUN4, SUNi386 -- whichver is appropriate
Linux: LINUX (You must 'setenv ARCH LINUX' as well on Linux)
For ex., on an SGI, do 'setenv CPU SGI' at the command line.
Type the command "ivmkmf -a" in the directory containing the source. Ivmkmf is
an InterViews script (installed with the rest of the IV binaries, etc.) and will
create a subdirectory in which the objects and executable will be put, and
create the necessary Makefiles and do the dependencies. NOTE: DO NOT USE THE
X11 RELEASE 6 MAKEDEPEND COMMAND. It has a bad bug in it, and none of the
Makefile dependency lines will work -- which can lead to inconsistent binaries.
Use the X11 R5 or R4 makedepend command.
Type "make", and get some coffee or something. The binary will be called "mxv",
and will be in the subdir mentioned above.
Install the file MiXViews.ad in whichever place you keep X resource files
(usually /usr/lib/X11/app-defaults) as "MiXViews".
Study the enclosed mxv.doc text file for information on how to use the
Email me if you have problems, but please be *sure* you have read the
instructions carefully, first.