Installation

Genki ML Runtime

CMake

Building the Genki ML C++ Runtime requires CMake to be installed.

Once you've cloned the genkiml repository, you can load the project in your editor or configure the project manually:

cmake -B build_dir -DGENKI_ML_BUILD_EXAMPLES=ON

To build the library and examples, run:

cmake --build build_dir

Optional

  • Set GENKI_ML_BUILD_ONNXRUNTIME_STATIC_LIB=ON to build onnxruntime from source and link into your executable. The default is OFF, so prebuilt dynamic libraries will be used. The static library takes a while to compile at first, so usually you'll probably want the dynamic one.
  • Set GENKI_ML_BUILD_EXAMPLES=ON to enable building of examples from the examples directory.

Windows

  • If CMake configuration fails, you might need to issue git config --system core.longpaths true in your terminal to work around a limitation in old Windows APIs.
Previous
genkiml CLI