Can I compile a standalone executable on a 32-bit platform and run it on a 64-bit platform using MATLAB Compiler?
3 次查看(过去 30 天)
显示 更早的评论
I would like to compile a standalone executable on a 32-bit machine, copy the resulting 32-bit executable, the CTF archive (if available), and the MCR to a 64-bit machine, and execute it.
采纳的回答
MathWorks Support Team
2009-11-10
MathWorks has not fully tested executing 32-bit applications compiled with MATLAB Compiler on a 64-bit machine. However, 32-bit application created with it should be able to run in emulation mode. This applies to Windows and UNIX platforms as well.
The process for deploying a 32-bit application onto a 64-bit machine is the same as deploying to a 32-bit machine. Note that you will need to install a 32-bit version of the MATLAB Compiler Runtime (MCR).
A 64-bit distribution of Linux should include 32-bit and 64-bit versions of libc and other libraries, so you should not need to copy any additional libraries to that machine. You can determine all the dependencies of your 32-bit application by using the LDD utility.
If you have the option, it is best to compile your application on the architecture you plan to deploy on, as MathWorks has tested same-architecture combinations more extensively.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!