| | 47 | |
| | 48 | \section{Compiling {\tt Ternary}} |
| | 49 | |
| | 50 | To compile {\tt Ternary}, you need the qhull library and geomview program, as |
| | 51 | well as a C compiler. On Ubuntu, installing the {\tt build-essential}, {\tt |
| | 52 | libqhull-dev} and {\tt geomview} packages satisfy this. |
| | 53 | |
| | 54 | Next, unpack the .tar.gz source archive by typing (at the command line): |
| | 55 | \begin{quote} |
| | 56 | \tt tar xzf Ternary-[version].tar.gz |
| | 57 | \end{quote} |
| | 58 | Configure and compile it using: |
| | 59 | \begin{quote} |
| | 60 | \tt ./configure\\ |
| | 61 | make |
| | 62 | \end{quote} |
| | 63 | Then you can run the {\tt ternary} and {\tt square} binary executables. Modify |
| | 64 | them by changing the parameters at the top of {\tt ternary.c} and {\tt |
| | 65 | square.c} and re-compiling it using {\tt make} again. |