home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Photo CD Demo 1
/
Demo.bin
/
cellsim
/
v2_5
/
installt
< prev
next >
Wrap
Text File
|
1990-02-26
|
5KB
|
94 lines
Installation notes
Cellsim version 2.5
February 1990
***************************
INSTALLING CELLSIM ON A SUN
***************************
To compile Cellsim:
Go to the "src" directory, and edit the file "Makefile". At the
top of the file, you will see four directory-definitions, which
tell Cellsim where to look for files when it can't find them in the
current directory.
Change these four definitions to point to the proper directories
where Cellsim is located, or else follow the instructions in the
makefile to disable these defaults. Be sure to use the full
pathname for any directories you put there.
If you are running SunOS 4.0 or later, then you can simply type "make"
from within the "src" directory. However, if you are running SunOS 3.5,
you must edit the "Makefile" once more. Comment out the first
definition of "OPT", and uncomment the second definition (there are
comments in the Makefile to help you with this). This is necessary
because the "-Bstatic" option is needed under 4.0, but the 3.5 C compiler
does not recognize that option.
Then, simply type "make". This will compile cellsim into an
executable file called either "cell.sun3" or "cell.sun4", depending
on which architecture you are compiling on. You may move this executable
wherever you like (e.g. /usr/local/bin, or your own personal
bin directory).
Example rules and user-written rules:
Go to the "Rule_src" directory. Edit the file "Makefile", and
change the definition of "MDIR" on line 2 to contain the full
pathname of the "Rule_mdir" directory. This is necessary to compile
your own rules, so the Makefile will know where to link in the
necessary files and find the necessary include file "nborhood.h".
You may also want to change the definitions of TABLE_DIR and FCN_DIR
to point to the location where you want lookup-table rules and
computed-fcn rules to go.
Once you've done that, type "make_demos" from within the "Rule_src"
directory. That will compile the computed-function rules (".o" files),
and move them into the "Rules" directory.
******************************************
INSTALLING THE CONNECTION MACHINE SOFTWARE
******************************************
If you won't be using a Connection Machine, you might as well delete
the CM software, which is in the file "CM.tar", to save disk space, and
stop reading now.
Otherwise, if you do have access to a CM, you should put that file
"CM.tar" on the CM front-end (CMFE) that you will be using to attach
to the CM (e.g. use FTP to send the tarfile to the CMFE). Once there,
in the directory which you want to install the software under, type
"tar xvf CM.tar". That will extract everything from the tarfile, and
put it under a directory "Cellsim2.5.CM2". You can remove the tarfile
once you've extracted its contents.
Once you've extracted the files, you should go to the "Cellsim2.5.CM2"
directory. Edit the "Makefile" -- there are several definitions you
need to supply:
FULL_CMATTACH : the full pathname of the "cmattach" command
FULL_CM_CELL_DIR : the full pathname of the directory this Makefile is in
CM_IMAGE_DIR : pathname of a directory containing images on the CMFE,
if there is one
CM_FCN_DIR : pathname of directory on CMFE containing Paris-rule ".o" files
CM_TABLE_DIR : pathname of directory containing lookup-tables
CMFB_EXISTS : if you will be using a CM Frame-Buffer (CMFB) to display
your images, set this to 1, otherwise set it to 0
Once you've edited those definitions in the Makefile, you should just be
able to type "make" to compile the "cm_cell" executable. "cm_cell" is
the program that attaches to the CM, and which Cellsim calls up to interact
with the CM. (See the "CM.doc" file in the "doc" directory for information
on using the CM with Cellsim).
One other thing you should do is go to the "Rule_src" directory under
the "Cellsim2.5.CM2" directory. There, you will find another Makefile.
You should change the definition of CM_MDIR on line 2 to point to the
full pathname of the Cellsim2.5.CM2/Rule_mdir directory. Users who want
to write their own C/Paris update-rules will copy this Makefile, and
it must point to the Rule_mdir where the include-file and shell-scripts
necessary to compile C/Paris update-rules reside. You can also edit
the definitions of TABLE_DIR and FCN_DIR to point to the directories
where you want to put lookup-table rules and computed-function rules.
Again, type "make_demos" to generate the sample rules as you did for
the Sun-based rules.