Installing and Building e4Graph on Unix

This page explains how to install and use the prebuilt distributions for Unix, and how to build e4Graph from source on Unix.

Using the Prebuilt Distributions on Unix

The prebuilt distributions have the following directory structure:

The e4Graph shared libraries were compiled with GCC 2.95.2 with -O. If you intend to use the prebuilt distribution as part of another project that you will be building from source, you need to have GCC and G++ 2.7.2.1 or a more recent release of GCC and G++ installed on your system. You may also want to use e4Graph from Tcl or Python. In this case, you only need to do the first two steps in the list below. If you intend to use e4Graph from Java, you only need to do the first and third step in the following list. To use e4Graph in your own project that you will build from source, do the following:

Building e4Graph from Source and Using it

Assume that the e4Graph sources are in /home/user/e4graph-1.0a11. The e4Graph source distribution configure utility automatically figures out where you've installed the needed header files for Metakit, and optionally Tcl, Expat and Java. The configure script looks for Metakit, Tcl, Expat, and Java in /home/user/metakit-2.4.9.2, /home/user/tcl8.4/, /home/user/expat-1.95.7 and in several system wide directories.

Building e4Graph on Unix now requires using GNU Make. GNU Make is preinstalled on most variants of Unix as either make or gmake.

You must first build and install Metakit and optionally Tcl and Expat with GCC and G++ 2.95.2 or a later version. Then change directory to /home/user/e4graph-1.0a11/all and invoke ./configure with the appropriate flags for your situation:

Then invoke make with the target you want to build: Read this section to learn how to use the e4Graph sub-packages you just built in your own projects. Invoking make install will do the necessary work for you automatically, according to the parameters you selected when you invoked configure.