MCR-R2013A Runtime Environment supports c-converted Matlab codes that have been created with the mcc command. When Matlab code is executed this way it does not require license and thus large amounts of C converted Matlab codes can be executed simultaneously.
With a bunch of patience, I finally gathered all pieces that solves this problem and now I can just specify the architecture when calling mex, and the right outcome is expected. This executable can be used in FGI when the Matlab Compiler Runtime (MCR) is available. Some library files for building a 32-bit mex file do not exist in 64-bit installation and have to be copied from a 32-bit version. Matlab (R2013a) Environment Introduction to Matlab Isaac Tetzloff - 4 Current Folder Contents of working directory Workspace Current variables Command History Past Commands Command Window Where the magic happens Working Path Where you are Toolstrip & Apps Ribbon w/ key functions. Pieces of code here and there from Mathworks are not that friendly to the idea of cross-platform compiling. The architecture switch in mex command simply does not work as intended. End users can run your applications royalty-free using MATLAB Runtime. With MATLAB Compiler you can also package and deploy MATLAB programs as MapReduce and Spark big data applications and as Microsoft ® Excel ® Add-ins. Im running MATLAB R2008a (7.6.0) with Microsoft Visual C++ 2008 as the compiler. MATLAB Compiler enables you to share MATLAB ® programs as standalone applications and web apps. After reading a few post online, I figured that there is no short-cut solution for this problem. Restarting MATLAB and computer did not solve my problem. I initially tried to find an easy way to do this kind of "cross-platform" build strictly inside my 64-bit MATLAB by playing with parameters or command line switches but found it is harder than I thought.
Matlab r2013a compiler command 64 Bit#
The targeted users may use 32 or 64 bit of MATLAB, which means I need to compile the mex files with both architectures. I am recently trying to maintain a few mex files in my Run-on-Stellaris-Launchpad Support Package project.