Compiling Matlab code for deployment
Show older comments
When compiling a matlab project for deployment I recieve the following error message. I am using Matlab 64 bit version and I have Visual studion Express 2009 32 bit version compiler.
Could this be a result of 32 and 64 bit compiler interoperability issues?
Appreciate any advise on resolving this!!!
------------------------------------------------------------------
Warning: The -outdir switch requires the mbuild options file to define
NAME_OBJECT. Make sure you are using the latest version of
your compiler's mbuildopts file.
Error: An options file for MBUILD was found, but the value for 'COMPILER'
was not set. This could mean that the value is not specified
within the options file, or it could mean that there is a
syntax error within the file.
C:\PROGRA~1\MATLAB\R2009B\BIN\MEX.PL: Error: Options file is invalid.
Error: An error occurred while shelling out to mbuild (error code = 255).
Unable to build executable.
-----------------------------------------------------------------
Answers (2)
Walter Roberson
on 26 May 2011
0 votes
What you want to do is "not strictly supported" in your release. The description of how to do it is here
Kaustubha Govind
on 26 May 2011
0 votes
Even though the default installation of Visual Studio (on 64-bit machines) installs only 32-bit compilers, you can choose specifically to also install the x64 compilers during installation. See Technical Solution# 1-6IJJ3L for instructions.
Also ensure that the version of your compiler is compatible with your version of MATLAB (list for R2011a is here).
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!