...
The document describes how to generate OpenMI dlls and executables on a Linux machine. This is done by using Mono, a .NET Open Source software for different platforms. Most of the OpenMI functionality was has been ported:
- the definitions of the OpenMI Standard,
- the source development kit SDK,
- running OpenMI from command line or with GUIs in the ConfigurationEditor (GUI),
- some LinkableComponents of the examples.
...
Panel | ||||
---|---|---|---|---|
| ||||
gmcs -out:<target>.exe -r<linkedLib_1>.dll,<linkedLib_k>.dll -pkg:<package_1>.pc,<package_m>.pc <source_1>.cs <source_n>.cs |
3.2. Mono and GUIs (Grapical User Interfaces
...
)
The GUI sources use Windows.Forms, that works with resource files in order to design the graphical elements. The Windows resource files (*.resx) are generated automatically in the Microsoft Visual Studio IDE. Linux applications do not process them and create a "resource not found" exception during runtime. Thus, the resources have to be converted with the Mono tool resgen / resgen2. The following command generates a Linux readable resource <name>.resource:
resgen <name>.resx generates a Linux readable resource <name>.resource .
Visual Studio assigns a resource file to a C# file automatically. On a Linux machine naming conventions guarantee the correct assignment. The C# source and its resource file must have the same prefix. This first part of the prefix must be the namespace.
Panel | ||||
---|---|---|---|---|
| ||||
Example for ElementSetViewer |
...
You have done it.
5. Miscellaneous
5.1.
...
Further platforms
...
The generated applications will probably run on further platforms, especially non-SUSE Linux derivates, without re-compilation. But it has not been proved yet. Interested persons are invited to test. The scripts should work. A short notice to the community, e.g. to the OpenMI Forum on SourceForge, would be greatappreciated.
5.2. Can I use the same sources for Linux and Windows?
...