1 # ------------------------------------------------------------------
2 # ------------------------------------------------------------------
3 # Notes for Netgen >= 4.9.13
4 # ------------------------------------------------------------------
5 # ------------------------------------------------------------------
7 Netgen home page: http://sourceforge.net/apps/mediawiki/netgen-mesher.
9 1. Minimal requirements
11 Minimal version of Netgen required for SALOME is 4.9.13.
13 2. How to build Netgen for SALOME NETGEN Plugin
14 -----------------------------------------
16 2.1. Download Netgen archive (here netgen-4.9.13.tar.gz) and unpack it
18 2.2. Patch the Netgen distribution for SALOME
21 $ patch -p1 < patch_directory/netgen49ForSalome.patch
23 Note that patch corresponds to the version of Netgen you use.
24 For example, netgen49ForSalome.patch mentioned above is a patch
25 file for Netgen 4.9.13. The patch for Netgen can be found in
26 NETGENPLUGIN_SRC/src/NETGEN directory.
28 2.3. Configure the netgen compilation. For example
31 $ ./configure --prefix=THE_INSTALLATION_PATH \
32 --with-occ=${CASROOT} \
33 --with-tcl=${TCLHOME}/lib --with-tk=${TCLHOME}/lib \
34 --with-tclinclude=${TCLHOME}/include
36 Note that Netgen depends on some products like Open CASCADE
37 Technology and Tcl/Tk. These products should be specified
38 to the configure script via options.
40 2.4. Compile the netgen product
44 2.5. Patch the installation directory by copying include files
45 needed by NETGEN Plugin. Use the script
46 NETGENPLUGIN_SRC/src/NETGEN/netgen_copy_include_for_salome
47 to achieve that. The first argument is the directory containing
48 the Netgen sources. The second argument is THE_INSTALLATION_PATH