Error using mcc Test checkout of feature 'Compiler' failed.
15 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2014-3-13
You could get that error if you had the MATLAB Compiler installed but do not have an available license for it.
3 个评论
Milad
2014-4-26
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
2018-2-14
I am also facing same problem. I am using Matlab 2013b. Anybody managed to solve this problem?
更多回答(4 个)
Milad
2014-4-26
编辑:Milad
2014-4-26
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 个评论
Rajeev Yadav
2014-11-30
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 个评论
Elias Linderman
2016-5-4
!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
2016-7-29
excuse me, if license('checkout','compiler') gives 1, but !mcc gives error, this is possible?
Kavish
2014-12-29
Was anyone successful in finding the solution to this problem?? Please inform ??
0 个评论
NEETHU PRAKASH
2016-8-4
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 个评论
Giorgio Menallo
2017-4-11
I have the impression you are talking about a cracked copy of Matlab. Am I wrong?
Muzammil
2017-5-2
@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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!