是否可以在 Windows 机器上从 Dymola 编译 Linux 可运行 fmus? [英] Is it possible to compile Linux runnable fmus from Dymola on Windows machine?
问题描述
我正在尝试使用 Dymola 从 Windows 机器导出 FMU,以便在 Linux 和 Windows 操作系统上使用.我猜这样的 fmu 将有 linux64 和 linux32 二进制文件以及 win32 和 win64 二进制文件.但是,我不确定如何触发 Dymola 为 Linux 可运行 fmu 生成二进制文件(如果可能的话).
I am trying to export a FMU from windows machine using Dymola, to be used on both Linux and Windows OS. I guess such fmu will have linux64 and linux32 binaries along with win32 and win64 ones. However, I am not sure how to trigger Dymola to generate binaries for Linux runnable fmu (if it possible to do that).
Dymola (2020X) 安装使用 Visual Studio 2019 编译器,同时提供使用 C++ 进行桌面开发"和使用 C++ 进行 Linux 开发"选项.我的假设是使用 C++ 进行 Linux 开发"将使 Dymola 编译 .so 文件,但是我只看到 fmu 中包含的 dll.
The Dymola (2020X) installation is using Visual Studio 2019 compiler with both 'Desktop development with C++' and 'Linux development with C++' options. My assumption was that 'Linux development with C++' would make Dymola to compile .so files, however I see only dlls included in the fmu.
推荐答案
很遗憾,您无法在一次操作中为 FMU:s 创建 Windows 和 Linux 二进制文件.不过建议很好.
Unfortunately you cannot create Windows and Linux binaries for FMU:s in one operation. Great suggestion, though.
这篇关于是否可以在 Windows 机器上从 Dymola 编译 Linux 可运行 fmus?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!