CATIA-Systems / FMPy

Simulate Functional Mockup Units (FMUs) in Python
Other
429 stars 118 forks source link

Compilation error #650

Closed AHaumer closed 7 months ago

AHaumer commented 7 months ago

Linux Mint 21.3 on VirtualBox 7.0.14 on Windows 11 Anaconda3-2023.09-0-Linux-x86_64 (Python 3.11) FMPy 0.3.19 fmpy compile MyModel.fmu fatal error: inttypes.h: No such file or directory grafik Simulating a fmu cross-compiled with Dymola and WSL on Windows works fine.

t-sommer commented 7 months ago

Can you share the FMU?

AHaumer commented 7 months ago

No problem. I tried it with different FMUs, this one is an example from MSL. I had to pack the fmu additionally into a zip. IMC_DOL.zip

t-sommer commented 7 months ago

inttypes.h was added with C99. Does your compiler support it?

AHaumer commented 7 months ago

Windows 11 64 bit: Visual Studio 2022 Linux Mint 21.3 64 bit: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

AHaumer commented 7 months ago

@t-sommer no idea? I have to prepare the FMUs for the new semester.

AHaumer commented 7 months ago

Sorry for bothering: The gcc-installation on my Linux (on a VM) was faulty. After a reinstallation the compilation works fine!