LSEG uses the default GNU compiler provided by CMake and included in the Linux distribution (which builds in 64-bit; to build in 32-bit, refer to the CMake command options in Section 4.4). For supported OS and compilers, refer to the Compatibility Matrix.
Note: For Linux builds with RedHat-based distributions (RHEL, CentOS, Oracle Linux), the CMake scripts require lsb_release software. On Red Hat Enterprise Linux and CentOS, when logged in as root, you can install lsb_release using the following command: yum install redhat-lsb-core
To run CMake in a Linux environment:
1. Obtain RTSDK. For details, refer to Section 3.
2. If obtaining RTSDK by downloading RRG packages, extract the contents of the RTSDK packages as needed. Refer to Section 3.
3. Note the name of the top-level extracted directory (i.e., on Linux, the name might be something like RTSDK-2.2.1.L1.linux.rrg or, if this is a GitHub clone, the name might be Real-Time-SDK).
The name of this extracted directory is referred to as sourceDir for the remainder of this procedure.
4. At a command prompt (e.g., in a terminal window), issue the command from the directory immediately above sourceDir:
cmake -HsourceDir -BbuildDir [-Doption ...]
Note:
By default, CMake builds the RTSDK using the optimized build option. For the debug version, instead issue the command: cmake -HsourceDir-BbuildDir–DCMAKE_BUILD_TYPE=Debug. In addition, on Linux platforms only, to build the optimized debug version, use this command: cmake -HsourceDir-BbuildDir–DCMAKE_BUILD_TYPE=OptimizedDebug.
Where:
• sourceDir is the directory in which the top-level CMake entry point (CMakeLists.txt) resides. By default, when you build using Makefile files, output is sent to directory specified in sourceDir.
• buildDir is the CMake binary directory (for the CMake build tree). This directory is created if it does not exist.
• option is a command line option and its associated value (e.g., -DBUILD_EMA_UNIT_TESTS=OFF). You can control aspects of how CMake builds the RTSDK by using command line options (for further details on the use of options, refer to Section 4.4).
The cmake command builds all needed Makefile files (and related dependencies) in the CMake build directory and may be built using gmake/make. Compiled output is located in its associated source directories (i.e., example executables are in the Executables directory and libraries (e.g., libema.lib, librssl.lib) in the Libs directory).