tcommon-problems.rst - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
(HTM) git clone git://src.adamsgaard.dk/pism
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tcommon-problems.rst (1446B)
---
1 .. include:: ../global.txt
2
3 .. _sec-install-common-problems:
4
5 Common build problems and solutions
6 -----------------------------------
7
8 We recommend using ``ccmake``, the text-based CMake interface to adjust PISM’s build
9 parameters. One can also set CMake cache variables using the ``-D`` command-line option
10 (``cmake -Dvariable=value``) or by editing ``CMakeCache.txt`` in the build directory.
11
12 Here are some issues we know about.
13
14 - If you are compiling PISM on a system using a cross-compiler, you will need to disable
15 CMake’s tests trying to determine if PETSc is installed properly. To do this, set
16 ``PETSC_EXECUTABLE_RUNS`` to "yes".
17
18 To tell CMake where to look for libraries for the target system, see `CMake cross
19 compiling <CMake-cross-compiling_>`_ and the paragraph about ``CMAKE_FIND_ROOT_PATH``
20 in particular.
21
22 - Note that the PISM build system uses ``ncgen`` from the NetCDF package to generate the
23 configuration file |config-file|. This means that a working NetCDF installation is
24 required on both the "host" and the "target" systems when cross-compiling PISM.
25
26 - Some systems support static libraries only. To build PISM statically and tell CMake not
27 to try to link to shared libraries, set ``Pism_LINK_STATICALLY`` to ``ON`` using
28 ``ccmake``.
29
30 - You can set ``Pism_LOOK_FOR_LIBRARIES`` to "``OFF``" to disable all heuristics and set
31 compiler flags by hand. See `PISM builds <pism-builds_>`_ for examples.