CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
161 stars 54 forks source link

Error during FMU build on export with CMake from Windows with target `grtfmi.tlc` #461

Open famura opened 1 year ago

famura commented 1 year ago

Hi there, I want to export a very basic Simulink model as a Co-Simulation FMU (v2) from Windows for Linux. To achieve this, I was following your tutorial.

I am using Matlab 2020b, the VS 2019 compiler (also tried 2015), x64 architecture, the FMIkit 3.1, the CMake that comes from grtfmi_install_cmake, a fixed-step solver, and no particular optimization for the compilation.

Unfortunately, the building process always crashes with

The call to grtfmi_make_rtw_hook, during the after_make_hook generated the following error:
    Failed to run CMake generator

What am I doing wrong? The model checker only yields a warning about the integrator blocks not being well-suited for production code. But I can not imagine this being the cause.

It might be related with issue #287, except that I don't want to use MinGW

t-sommer commented 10 months ago

Can you share steps to reproduce the problem?