OCRchie compilation notes

Full Package Compilation

To compile OCRchie in its entirity, your system will neeed to satisfy the system requirements of the package. Past this, compilation should proceed relatively easily. In the file named "Makefile" check these things

1) Specify the compiler you wish to use. We compiled with g++ (C++ gcc) versions 2.7.0 and 2.6.3 for hpux 9.03, but other compilers should work as well. We did recieve some warnings about certain constructs forbidden by ANSI C++. Ignore these warnings (or fix them if your compiler requires you to do so).

2) Indicate any flags you wish to compile with in the CCFLAGS section.

3) Specify your Tcl root directory. The Tcl version should be 7.4 supporting Tk4.0. Later versions may work as well, but tk syntax in earlier versions will not be compatible. (if you must, the errors are mostly caused by scrollbars in the file "new_ui.tcl", instead of using the -xscrollincrement option, use the -scrollincrement option). The beta edition of 7.4 will give a nasty error after opening files during OCRchie operations. Ignore this message.

4) Specify your X11 and Math library locations.

5) Change ODIR to the name of the directory in which you'd like to store OCRchie object files. You must create this directory before you compile.

6) Do "gmake project" from your prompt.

Partial Compilation Only

If you're using parts of this package separately, you probably know how to mess around with Makefiles and the like, the only thing I should probably warn you about is that TCL IS REQUIRED for several of the modules. There is a "link variable" (in "link.h" & cc) interface that allows you to set global variables through tcl in the file "link_vars.tcl." Setting global variables in tcl can be a great advantage, since you do not need to compile after doing so. Also, most files do need to be compiled with "system.cc".