Prerequisites

NameMinimum Version
C++ compilerc++17 compliant compiler
CMake3.0
Boost1.65
OpenSSL version 11.1
pkg-config0.29
libXML22.10
Capnproto0.10

Supported OSs

The UDA server can been build on Linux and macOS. Note that the server will not run on Windows; only the client installation is supported.

Builing UDA

Note that the most up-to-date build script will be the one used for testing in the github CI tests here. This will contain the relevant buld steps for Ubuntu and MacOS. There are also some dockerfiles available here which will show the build steps for some other Linux flavours.

Clone the repo

git clone git@github.com:ukaea/UDA.git

Build configuration

Cmake configuration options

OptionDefaulltDescription
BUILD_SHARED_LIBS:BOOLONBuild shared libraries
CMAKE_INSTALL_PREFIX:PATH/usr/localInstall path prefix, prepended onto install directories.
CMAKE_BUILD_TYPE:STRINGDebugChoose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel …
UDA_SERVER_HOST:STRINGhostnamedefine hostname in server configuration files
UDA_SERVER_PORT:STRING56565define port number in server configuration files
CLIENT_ONLY:BOOLONOnly build UDA client
SERVER_ONLY:BOOLOFFOnly build UDA server
ENABLE_CAPNP:BOOLONEnable Cap’n Proto serialisation
NO_MEMCACHE:BOOLONDo not attempt to build with libmemcached support
NO_WRAPPERS:BOOLOFFDon’t build any UDA client wrappers
NO_CLI:BOOLOFFDon’t build UDA CLI
UDA_CLI_BOOST_STATIC:BOOLOFFcompile commandline interface with static boost libraries
NO_CXX_WRAPPER:BOOLOFFDon’t build C++ wrapper
NO_IDL_WRAPPER:BOOLOFFDon’t build IDL wrapper
FAT_IDL:BOOLOFFBuild IDL wrapper using fat-client
NO_JAVA_WRAPPER:BOOLOFFDon’t build Java wrapper
NO_PYTHON_WRAPPER:BOOLOFFDon’t build Python wrapper
export UDA_ROOT=/usr/local
cmake -Bbuild -H. -DBUILD_SHARED_LIBS=ON -CMAKE_INSTALL_PREFIX=$UDA_ROOT -DCMAKE_BUILD_TYPE=Release

Build

cmake --build build

Install

cmake --install build