Skip to content

C++ Native Wrapper

C++ Native Wrapper

A prebuilt release is available on 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.

Compilation Steps

  1. Follow the Preliminary Steps to setup build enviroment with cmake, cmake, gcc and libgopmp1
  2. Set up Boost Libraries. You can also install it from package manager and you are not forced to compile the Boost package.
  3. Clone the repository:
    git clone git@github.com:Medial-EarlySign/MR_Tools.git
    
  4. If you compiled the Boost library, edit AlgoMarker_python_API/ServerHandler/CMakeLists.txt to include the following line:
    set(BOOST_ROOT "$ENV{HOME}/boost-pic-install")
    
    This should point to your Boost compiled home directory (WORK_BUILD_FOLDER from step 2) from the compilation step. Ensure the compiled libraries are in /libs and the headers are in /include. Alternatively you can just set your environment variable BOOST_ROOT to reference the Boost build directory.
  5. Compile the wrapper:
    AlgoMarker_python_API/ServerHandler/compile.sh
    
  6. Execute the server:

    AlgoMarker_python_API/ServerHandler/Linux/Release/AlgoMarker_Server --algomarker_path $AM_CONFIG --library_path $AM_LIB --port 1234
    

    • AM_CONFIG: Path to the AlgoMarker configuration file.
    • AM_LIB: Path to the AlgoMarker shared library. Refer to AlgoMarker Library) for compilation steps.

A full docker image for compilation steps can be found under this link: