Building Python bindings from source

Hello,
I am trying to build the python bindings from the Github sources but I have problems with CMake generating the projects. My environment is Windows 10, Visual Studio 2019, Python 3.8.8, Latest Github Source Tag: 2022.0.1

CMake stops at this error:

[PROJECT] prod-lib-mdl_python   (SHARED_LIBRARY)
CMake Warning at cmake/utilities.cmake:470 (find_package):
  By not providing "Findmdl_sdk::shared.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "mdl_sdk::shared", but CMake did not find one.

  Could not find a package configuration file provided by "mdl_sdk::shared"
  with any of the following names:

    mdl_sdk::sharedConfig.cmake
    mdl_sdk::shared-config.cmake

  Add the installation prefix of "mdl_sdk::shared" to CMAKE_PREFIX_PATH or
  set "mdl_sdk::shared_DIR" to a directory containing one of the above files.
  If "mdl_sdk::shared" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  cmake/utilities.cmake:585 (__target_add_dependency)
  src/prod/bindings/mdl_python/CMakeLists.txt:90 (target_add_dependencies)


CMake Error at cmake/utilities.cmake:473 (MESSAGE):
  The dependency "mdl_sdk::shared" for target "prod-lib-mdl_python" could not
  be resolved.
Call Stack (most recent call first):
  cmake/utilities.cmake:585 (__target_add_dependency)
  src/prod/bindings/mdl_python/CMakeLists.txt:90 (target_add_dependencies)

Help is very appreciated.
Cheers,

Malte Dreschert

Hi Malte,
I’m wondering what options you changed in cmake. Especially the ones starting with MDL_.
If you are using the default settings, enable the Python Bindings, and set all variables that cmake is asking for, i.e., following the readme.md, the mdl_sdk::shared project should be enabled. It’s possible that it’s missing if you disabled all other examples because we missed a case here. If that is case, please let me know so we can fix it.

Thanks