4

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).

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.

win linux

Kaustubh
  • 391
  • 2
  • 10
  • 2
    Do you have a SourceCodeExport License for Dymola? Then you can export your FMU with source code and add the Linux binaries e.g. with the help of fmpy (https://github.com/CATIA-Systems/FMPy; use fmpy-gui --> help --> compile platform binaries) on a Linux machine. – Christian Bertsch Mar 12 '20 at 06:28
  • Christian, unfortunately currently I don't have access to SourceCodeExport license. – Kaustubh Mar 12 '20 at 14:11
  • The cross-compilation feature is now available in Dymola 2022. – Kaustubh Jul 07 '21 at 14:44

2 Answers2

4

Unfortunately you cannot create Windows and Linux binaries for FMU:s in one operation. Great suggestion, though.

Dag B
  • 621
  • 3
  • 8
1

Are you using a network or nodelocked license? Maybe a dual boot/virtual machine could help.

stephan
  • 21
  • 1
  • Or run Linux in a virtual machine in parallel, easy setup especially if you have a network (shareable) license. – Dag B Mar 14 '20 at 10:06