Installing and Building e4Graph on Mac OS X 10

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

Using the Prebuilt Distributions on MacOS X 10

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++ 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-, /home/user/tcl8.4/, /home/user/expat-1.95.7 and in several system wide directories.

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.