MES Tools to Train and Test Models
MES Tools to Train and Test Models
Overview
These are command-line executables for training, testing, and manipulating models, as well as other utilities developed by MES.
You can download a prebuilt release from the Release page. The release is built with glibc 2.17 and will work out of the box on systems with glibc ≥ 2.17 (e.g., Ubuntu >= 13.04, Centos>=7, eg.). If you need to build from source, follow the instructions below.
Installation Steps
- Install Boost Libraries. Compilation is not required, you might install from pacakge manager.
- Clone the required repositories:
- Change to the
MR_Toolsdirectory: - Edit
All_Tools/CMakeLists.txtto setLIBS_PATHto the path of your MR_LIBS clone. If your directory structure is: then no changes are needed. If you compiled Boost, also setBOOST_ROOTin the CMakeLists.txt file. - Edit
All_Tools/CMakeLists.txtand add/edit line:Set this path to your Boost build directory (WORK_BUILD_FOLDERfrom step 2). Make sure the compiled libraries are in/libsand headers in/include. Alternatively you can just set your environment variableBOOST_ROOTto reference the Boost build directory. - Build the tools:
A full docker image for compilation steps can be found under this link:
- 01.basic_boost A base docker image with Boost
- 02.build_tools A build with tools prepared for usage
Common Issues
-
Can't find Boost libray errors in compilation - Please delete the "./build" folder to recreate all Makefiles again. It holds some bad settings of Boost in cache.
-
Can't find
boost_atomic.soin runtime. Please addatomicin CMakeLists.txt underBOOST_LIBSand recompile -
Running an executable may fail with:
This indicates the Boost shared libraries are not found at runtime. SetLD_LIBRARY_PATHto point to your Boost lib directory. Add to your ~/.bashrc or run once per session:If Boost was installed via the system packages (Ubuntu 22.04 uses 1.74, 24.04 uses 1.83), install the appropriate dev packages instead of adjustingLD_LIBRARY_PATH:Replace 1.83 with 1.74 on Ubuntu 22.04 when needed.