OpenModelica 和 FMU 交叉编译 (Linux->Windows)

OpenModelica and FMU cross compilation (Linux->Windows)

我想在 Ubuntu 中为 Windows(32 位和 64 位)编译一个 FMU。

我阅读了 OpenModelica 用户指南版本 v1.11.0 (https://openmodelica.org/newss/179-february-6-2017-openmodelica-1-11-0-released):

"Added OMEdit support for FMU cross compilation. This makes it possible to launch OMEdit on a remote or virtual Linux machine using a Windows X server and export an FMU with Windows binaries."

"Cross compilation of C++ FMU export. Compared to the C runtime, the C++ cross compilation covers the whole runtime for model exchange."

如何进行交叉编译?

我是否应该安装任何东西以获得 "Platform" 部分中的 Windows 选项?

谢谢!!!

已编辑: "sudo apt-get install mingw-w64" 添加了 Mingw 编译器。 是否可以添加其他编译器?例如:Clang for Windows.

Mingw: sudo apt-get 安装 mingw-w64 该选项将出现在对话框 window.