Addendum to the original README: relevant details to get it work on Mac OS X Leopard Vidit Jain Please read the original README before proceeding. While most of the details included in this document are specific to Mac OS X, they may also be helpful in resolving similar issues on other platforms. Required libraries/binaries: --------------------------- * libjpeg : fink distribution available * gfortran : no fink distribution available. Can use the version available at http://hpc.sourceforge.net/. Note: g95 fortran compiler fails to compile the source in trlan directory. * lapack, blas Modifications to source files ----------------------------- 1) values.h : This interface is obsolete and may not be present on all flavors of Unix (Mac OS X does not have it). This header file is mostly needed for obtaining the system-dependent max-, min-, and similar values for different data types such as float and int. Although some of the required constants are defined in util/types.hh, is needed for resolving macros such as FLT_MAX. Files affected : util/kmeans.cc, util/segmentation.cc, group/texture.cc 2) Some distributions of Unix may not have 'uint' data-type defined. Util::uint is type-defined as 'unsigned int' in this distribution. This name resolution need to be made explicit by using one of the two following ways depending on the required name resolution scope: - Using Util::uint - uint 'replace by' Util::unit Files affected: util/configure.cc, apps/unitex.cc 3) For reasons similar to (1) and (2), "malloc.h" need to be replaced by "stdlib.h" in bench/csa-1.2/csa/prec_costs/{main.c, parse.c} Modifications to Makefile ------------------------- 1) Makefile.gcc : need to include the appropriate directories for libjpeg in ${IFLAGS} and ${LFLAGS} 2) trlab/Makefile.gcc : need 'ranlib libtran.a' after creating the library archive libtrlan.a, i.e., after 'ar -cru libtrlan.a ...' Happy segmenting!!!