...
- cmake ( install cmake (sudo apt-get install cmake))
- g++ ( install g++ (sudo apt-get install g++) )
- Python 2.7 ( Python 3.0 not tested )
If you intend to use ecFlow Python API, You will need to install Python. (install python-dev (sudo apt-get install python-dev))
Please ensure that python is accessible on $PATH otherwise, you may need to customise $BOOST_ROOT/tools/build/v2/site-config.jam .
If you do not need the python api, then you can build without it, see below.The python installation should include the development packages
Xlib, X11, XMotif for ecflowview .
Do not use Lesstif library to compile ecflowview as a replacement for Motif.
OpenMotif can be downloaded from http://www.ist.co.uk/downloads/motif_download.html
If you do not want use the GUI, then you can configure the build to ignore this dependency.- Qt for ecFlowUI (Qt5 preferred).
For self-installed Qt libraries, consider setting CMAKE_PREFIX_PATH (see below). See also http://doc.qt.io/qt-5/cmake-manual.html for further details.
Setting up the build environment
...
cmake options | doc | default |
---|---|---|
CMAKE_INSTALL_PREFIX | where you want to install your ecflow | /usr/local |
CMAKE_BUILD_TYPE | to select the type of compilation:
| Release |
CMAKE_CXX_FLAGS | More more flags for the C++ compiler | |
ENABLE_PYTHON | enable python interface | on |
ENABLE_UI | enable build of ecflowUI (requires QTQt) | on |
CMAKE_PREFIX_PATH | Use use to provide path to install prefix of Qt 5 installation.See http://doc.qt.io/qt-5/cmake-manual.html for further detailsdependent libraries which are installed in a non-system locations. | |
ENABLE_GUI | enable build of ecflowview (requires X11 and motif) | on |
ENABLE_ALL_TESTS | enable performance, migration, regression tests. | off |
BOOST_ROOT | where to find boost ( if non-standard installation ) If not specified cmake will look for an environment variable of the same name. |
...