Run SCIRun's configure script. Do this from a sub-directory of
directory SCIRun (but not
SCIRun/src) as follows:
mkdir SCIRun/build-dircd SCIRun/build-dir../src/configure --with-thirdparty=third-party-dir\ --enable-package="package-name1 package-name2 …"
in which case SCIRun is built in the directory
SCIRun/.
build-dir
Build-dir is often
bin or a name that reflects the machine
architecture.
Above, replace third-party-dir by
the path provided by the third-party installation script.
Replace "package-name1 package-name2
…" by a list of package names,
e.g. "BioPSE MatlabInterface". An example configure command
is:
../src/configure \ --with-thirdparty=/usr/local/SCIRun/Thirdparty/1.8.0/Linux/gcc-3.2-32bit \ --enable-package="BioPSE MatlabInterface"
Use option --with-unipetsc to add support for
PETSc.
Options --with-lapack and
--with-blas must be used if the
BLAS and LAPACK libraries are
not in /usr/lib (“SCIRun PETSc
Configure Options” describes these options).
For example:
../src/configure \
--with-thirdparty=/usr/local/SCIRun/Thirdparty/1.8.0/Linux/gcc-3.2-32bit \
--enable-package="BioPSE MatlabInterface" \
--with-unipetsc=/usr/local/petsc \
--with-blas=/usr/local/lib \
--with-lapack=/usr/local/lib
Use option
--with-insight to add support for Insight.
Packages Teem and Insight must also be enabled when using
--with-insight. For example:
../src/configure \ --with-thirdparty=/usr/local/SCIRun/Thirdparty/1.8.0/Linux/gcc-3.2-32bit \ --enable-package="BioPSE Teem Insight" \ --with-insight=/usr/local/lib/InsightToolkit
Use option --with-hdf5 to add HDF5 support.
Use option --with-mdplus to add MDSplus
support. Also enable packages Teem and DataIO. For example:
../src/configure \ --with-thirdparty=/usr/local/SCIRun/Thirdparty/1.8.0/Linux/gcc-3.2-32bit \ --enable-package="Fusion Teem DataIO" \ --with-hdf5=/usr/local/hdf5 \ --with-mdsplus=/usr/local/mdsplus
Support for TrueType (scalable anti-aliased) fonts in PowerApp
BioImage and module ViewSlices is enabled with option
--with-freetype=.
path-to-freetype-lib-directoryPath-to-freetype-lib-directory is
the path to a directory containing freetype2 libraries, for
example /usr/local/lib. Option
--with-freetype is not needed when freetype2
libraries exist in /usr/lib.
Not all of configure's options have been mentioned. Running configure --help lists them all.
Run GNU make from build-dir.
cd build-dir
make
Be sure that make invokes GNU make. GNU make is sometimes named gmake or gnumake.
For a multiprocessor system GNU make's -j option can
be used to reduce the build time:
make -j N
where N is the number of processors
available for use by make. Using this option on a multiprocessor
machine can significantly reduce the time to build SCIRun.
After a successful build, build-dir
will contain the scirun and PowerApp
executables.
It is possible to build SCIRun for multiple machine architectures and multiple sets of configure options within the same source code directory. See Appendix B, Single Source, Multiple Binaries for details.
Read “Before Starting SCIRun” before starting SCIRun.