MATLAB Answers

Error using mcc Test checkout of feature 'Compiler' failed.

73 views (last 30 days)
kaida
kaida on 13 Mar 2014
Commented: MUHAMMAD MOHSIN on 14 Feb 2018
I am trying to use vs2012 to call matlab 2013b, but I failed.as follows:
>> mbuild -setup
Welcome to mbuild -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2013b/win64.html
Please choose your compiler for building shared libraries or COM components:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Microsoft Visual C++ 2012 in D:\Program Files (x86)\Microsoft Visual Studio 11.0
[0] None
Compiler: 1
Please verify your choices:
Compiler: Microsoft Visual C++ 2012
Location: D:\Program Files (x86)\Microsoft Visual Studio 11.0
Are these correct [y]/n? y
****************************************************************************
Warning: Applications/components generated using Microsoft Visual C++
2012 require that the Microsoft Visual Studio 2012 run-time
libraries be available on the computer used for deployment.
To redistribute your applications/components, be sure that the
deployment machine has these run-time libraries.
****************************************************************************
Trying to update options file: C:\Users\kaida\AppData\Roaming\MathWorks\MATLAB\R2013b\compopts.bat
From template: D:\PROGRA~1\MATLAB\R2013b\bin\win64\mbuildopts\msvc110compp.bat
Done . . .
>>
>> 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/R2013b/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Microsoft Visual C++ 2012 in D:\Program Files (x86)\Microsoft Visual Studio 11.0
[0] None
Compiler: 1
Please verify your choices:
Compiler: Microsoft Visual C++ 2012
Location: D:\Program Files (x86)\Microsoft Visual Studio 11.0
Are these correct [y]/n? y
***************************************************************************
Warning: MEX-files generated using Microsoft Visual C++ 2012 require
that Microsoft Visual Studio 2012 run-time libraries be
available on the computer they are run on.
If you plan to redistribute your MEX-files to other MATLAB
users, be sure that they have the run-time libraries.
***************************************************************************
Trying to update options file: C:\Users\kaida\AppData\Roaming\MathWorks\MATLAB\R2013b\mexopts.bat
From template: D:\PROGRA~1\MATLAB\R2013b\bin\win64\mexopts\msvc110opts.bat
Done . . .
**************************************************************************
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the new
API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html
Building with the -largeArrayDims option enables the new API.
**************************************************************************
>>
When I try to complie my M file:
mcc -W cpplib:test -T link:lib test.m
Error using mcc
Test checkout of feature 'Compiler' failed.
How SHOULD I SOLVE THE PROBLEM???

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 13 Mar 2014
You could get that error if you had the MATLAB Compiler installed but do not have an available license for it.

  3 Comments

Milad
Milad on 26 Apr 2014
I dont turst this answer. If I have problems with licence, I wont get 1 for the following licence check:
>> computer
ans =
PCWIN64
>> license('checkout','Compiler')
ans =
1
MUHAMMAD MOHSIN
MUHAMMAD MOHSIN on 14 Feb 2018
I am also facing same problem. I am using Matlab 2013b. Anybody managed to solve this problem?

Sign in to comment.

More Answers (4)

Milad
Milad on 26 Apr 2014
Edited: Milad on 26 Apr 2014
Kaida, did you manage to solve this problem? I have the same issue with 2013b. Today I uninstalled 2012b and installed 2013b and I am no longer able to create .exe files. I get the same error as your.
mbuild setup:
>> mbuild -setup
Welcome to mbuild -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2013b/win64.html
Please choose your compiler for building shared libraries or COM components:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Microsoft Visual C++ 2010 in c:\Program Files (x86)\Microsoft Visual Studio 10.0
[0] None
Compiler: 1
Please verify your choices:
Compiler: Microsoft Visual C++ 2010
Location: c:\Program Files (x86)\Microsoft Visual Studio 10.0
Are these correct [y]/n? y
****************************************************************************
Warning: Applications/components generated using Microsoft Visual C++
2010 require that the Microsoft Visual Studio 2010 run-time
libraries be available on the computer used for deployment.
To redistribute your applications/components, be sure that the
deployment machine has these run-time libraries.
****************************************************************************
Trying to update options file: C:\Users\valiollahi\AppData\Roaming\MathWorks\MATLAB\R2013b\compopts.bat
From template: C:\PROGRA~1\MATLAB\R2013b\bin\win64\mbuildopts\msvc100compp.bat
Done . . .

  1 Comment

Royi Avital
Royi Avital on 30 Sep 2014
I have this problem. The mbuild recognizes the Compiler yet I get this error.

Sign in to comment.


Rajeev Yadav
Rajeev Yadav on 30 Nov 2014
This problem arises when you do not have a license for the compiler. You can type !mcc and check if you do have one or not.
Hope it helps those who desperately search for an answer to this problem.
Thanks Rajeev

  2 Comments

Elias Linderman
Elias Linderman on 4 May 2016
!mcc just say "Test checkout of feature 'Compiler' failed.", don't say anything about license, i have the same problem, matlab recognize the SDK 7.1 for C language compilation, but the problem continue. (the command ver say MATLAB COMPILER, MATLAB BUILDER JA, MATLAB BUILDER EX with their number's version. Any idea to solve it?
4lrdyD
4lrdyD on 29 Jul 2016
excuse me, if license('checkout','compiler') gives 1, but !mcc gives error, this is possible?

Sign in to comment.


Kavish
Kavish on 29 Dec 2014
Was anyone successful in finding the solution to this problem?? Please inform ??

  0 Comments

Sign in to comment.


NEETHU PRAKASH
NEETHU PRAKASH on 4 Aug 2016
Hi all i also had this issue ... but now it was solved...While you are installing your matlab ,please kindly do these.... when you will be asked to activate the product you can refuse to activate OR select activation without internet and use "X:\serial\license.lic" as license file 6) copy folder "bin" and its content from folder "X:\serial\MatlabX32" or "X:\serial\MatlabX64" (depending on 32-bit or 64-bit you have installed) to folder where you installed Matlab WITH OVERWRITING of existing files This could ask you to use Administrative rights (for Windows newer then WinXP)

  2 Comments

Giorgio Menallo
Giorgio Menallo on 11 Apr 2017
I have the impression you are talking about a cracked copy of Matlab. Am I wrong?
Muzammil
Muzammil on 2 May 2017
@Neethu Prakash, I only have one file libmwservices in x64 folder and I have pasted it in bin/Win64 replaing the original file. But this doesn't solve the problem. Any suggestion?

Sign in to comment.

Sign in to answer this question.


Translated by