As mentioned before, you can either get the source code package or the object code package from the LEDA download site. Both have to be unpacked as follows. Suppose the downloaded file is LEDA-4.1.tgz. Place it into a directory for which you have write permission and type
If you have the source code of LEDA just continue reading, otherwise go to section Object Code Packages
The source code package is only distributed for unix installation (see section Platforms for details). In this subsection we use leda-root-path to denote the path name of the LEDA main directory (in the source code package the name usually consists of the prefix LEDA followed by the version number, for instance LEDA-4.1). It should contain the following files and subdirectories:
README | information about LEDA |
INSTALL | this file |
CHANGES (please read !) | most recent changes |
FIXES | bug fixes since last release |
Manual/ | user manual |
Makefile | make script |
confdir/ | configuration directory |
lconfig | configuration command |
incl/ | include directory |
src/ | source files |
test/ | example and test programs |
demo/ | demo programs |
Now just type
libL.a (libL.so) | main library |
libG.a (libG.so) | graph library |
libP.a (libP.so) | d2-geo library |
libD3.a (libP.so) | d3-geo library |
libW.a (libW.so) | window library |
The graphics library libW is based on X11. It can be made only if the main X11 include directory is located in one of the standard include directories of your compiler (e.g. /usr/include/X11). If this is not the case you have to tell the compiler where it is by using the -I option in src/Make.src, e.g., -I/usr/openwin/include should work on most SUN workstations.
Now you are in a situation similar to people having downloaded the object code package. So please read on!
If you have unpacked an object code package, then your current working directory should contain the files libL.a, libG.a, libP.a, libW.a and lib3D.a.
To procede you have to modify your environment as follows:
You may want to ask your system adminstrator to install the header files and libraries in the system's default directories. Then you no longer have to specify header and library search paths on the compiler command line.
Remark: Of course you can also use LEDA if you do not have access to the standard directories of the compiler you're using. Section Libraries will tell you how.