Dear Stephan,
regarding your first question, I have a twofold answer:
- Use a cross-compiling workflow such that one Cross-compiling on Windows for Linux
- MATLAB is also available on Linux OS: MathWorks Platform Availability . If that is a suitable workflow, you can do everything in Linux.
Concerning your question about 32/64bit compatiblity again there are two options:
- Stick to your workflow of using MATLAB 32bit
- Alternatively, ou need to create custom toolchain which allows you to call the 32-bit version of the Microsoft Visual Studio Compiler.
The workflow for the 2nd option is as follows:
Please execute the "generate_32_bit_dll" function to create the custom toolchain which generates 32 bit DLL using ert_shrlib.TLC and choose 'Microsoft 64-bit compiler targeting 32-bit DLL | nmake makefile (64-bit Windows)' for the toolchain in the model's Configuration Parameters > Code Generation pane. How can I build a 32-bit shared library (DLL) with Embedded Coder on Windows 64-bit MATLAB? Answer You need to create custom toolchain which allows you to call the 32-bit version of the Microsoft Visual Studio Compiler.
Please execute the "generate_32_bit_dll" function to create the custom toolchain which generates 32 bit DLL using ert_shrlib.TLC and choose 'Microsoft 64-bit compiler targeting 32-bit DLL | nmake makefile (64-bit Windows)' for the toolchain in the model's Configuration Parameters > Code Generation pane.
Let me know whether these answers are helpful to you!
Cheers, Christoph