NOT UP TO DATE AND INCOMPLETE DOCUMENT BUT CAN BE HELPFUL
You'll find here generic instructions for installing the SALOME platform.
First of all, you have to check (or install if needed) the dependant software programs on your system. These programs are:
Further details can be found in sections System configuration and Third-party dependencies.
If the dependencies are installed on your system, then you have to set your shell environment to get access to the software components (cf. Preparing the shell environment).
The next step is to install the KERNEL (cf. Installing the KERNEL component):
Where <Mode> is build mode (Release or Debug), <kernel_install> is a destination folder to install KERNEL module of SALOME.
Then, the SALOME components GEOM, MED, VISU, ... can be installed with a similar procedure (cf. Installing the SALOME components).
Eventually, the platform can be run by executing the shell script runSalome (cf. Runtime). Here, somme additionnal variables have to be set to describe the SALOME runtime configuration (<COMPONENT>_ROOT_DIR, OMNIORB_CONFIG)
The following provides you with specific instructions for each step.
SALOME is compiled and tested on differents platforms with native packages:
If you have another platform, we suggest the following configuration for building process:
remarks:
The SALOME platform relies on a set of third-party softwares. The current version depends on the following list (versions given here are from Debian Sarge, except OpenCascade, VTK and MED, which are not Debian packages):
And, in order to build the documentation:
Additionnal software may be installed for optional features:
To Do
In the following, we assume that all the third-party softwares are installed in the same root directory, named <salomeroot>/prerequis. Then, your file system should probably look like:
Some variables have to be set to get access to third-party software components (include files, executable, library, ...) during building process and runtime.
The shell file prerequis.sh, embedded in the KERNEL source package, provides a template for setting those variables. In this example, all the softwares are supposed to be installed in the same root directory, named here INSTALLROOT.
Copy the prerequis.sh in a working directory and adjust the settings to your own configuration. To get the shell prepared, just execute the following command in the building shell:
(we assume here a ksh or bash mode)
We use here the notation <kernel_src> to specify the source directory of the KERNEL component. The shell environment is supposed to have been set (cf. Preparing the shell environment).
Installing the KERNEL from a source package needs three directories:
The installing process is:
STEP 1: preparing directories
create the <kernel_build> and the <kernel_install> directories:
go to the build directory
STEP 2: configure the building process
Where <Mode> is build mode(Release or Debug), <kernel_install> is a destination folder to install KERNEL module of SALOME. Note that <kernel_install> must be an absolute path.
When the configure process is complete, check the status of cmake build. You should not have the errors and warnings. All dependent products and packages must be found.
If a software get a status "not found", then it is not "seen" in the system:
STEP 3 : Building the binary files
Execute make in the <kernel_build> directory:
STEP 4: Installing binary files, scripts and documentation
Execute install target in the <kernel_install> directory:
Installing a component <COMPONENT> is done by following the same instructions as given for the KERNEL, replacing KERNEL by <COMPONENT>.
You just have to be aware of the dependencies between components:
For example, installing the component SMESH needs the previous installation of the KERNEL component, and then the GEOM and MED components.
The building process uses the variables <COMPONENT>_ROOT_DIR to localize the dependant components. The variables must be set to the install path directory of the components <COMPONENT> (ex: KERNEL_ROOT_DIR=<kernel_install>).
In the above example, the three variables KERNEL_ROOT_DIR, GEOM_ROOT_DIR and MED_ROOT_DIR have to be set before configuring the building process of the SMESH component (STEP 3).
See Salome Application Concept to define your own configuration of SALOME and run it on one or several computers. This is the recommended way of configuration.
The following explains the general principles.
To run the SALOME platform, the procedure is:
For convenience or customization, we suggest the following organisation: