MATLAB Answers

run mbuild _setup error:Undefined function 'mbuild' for input arguments of type 'char'.

1 view (last 30 days)
kuan jiang
kuan jiang on 7 Apr 2020
Commented: Walter Roberson on 11 Apr 2020
MATLAB2012b WINDOWS-32bit
>> mex -setup
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012b/win32.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker) in D:\ivf\ComposerXE-2011\
[2] Lcc-win32 C 2.4.1 in D:\MATLAB\sys\lcc
[3] Microsoft Visual C++ 2010 in D:\vs2010
[0] None
>>run mbuild _setup
Undefined function 'mbuild' for input arguments of type 'char'.
how to deal with this problem guys

  0 Comments

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 7 Apr 2020
mbuild is part of the MATLAB Compiler Toolbox. You either do not have that installed, or else you do not have it licensed.

  4 Comments

Show 1 older comment
Walter Roberson
Walter Roberson on 8 Apr 2020
To test to see whether you have a license for MATLAB Compiler, execute
license('test','compiler')
If it returns 1 then you do have a license and would only need to install it (but you might need to arrange with your IT staff to get a copy of the installer.)
If it returns 0, then you do not have a license for the toolbox.
It is probably not possible to purchase such an old license at this time. However, if you have a license for MATLAB Compiler for any newer version, then you can use that license to install for R2012b.
Walter Roberson
Walter Roberson on 11 Apr 2020
Unfortunately that indicates you do not have a license for the toolbox.
That toolbox is one of the more expensive ones, and it is not available for Student or Home licenses, only for Academic and Commercial / Professional licenses.

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!