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

29 ビュー (過去 30 日間)
kaida
kaida 2014 年 3 月 13 日
コメント済み: MUHAMMAD MOHSIN 2018 年 2 月 14 日
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???

採用された回答

Walter Roberson
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
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
MUHAMMAD MOHSIN 2018 年 2 月 14 日
I am also facing same problem. I am using Matlab 2013b. Anybody managed to solve this problem?

サインインしてコメントする。

その他の回答 (4 件)

Milad
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 件のコメント
Royi Avital
Royi Avital 2014 年 9 月 30 日
I have this problem. The mbuild recognizes the Compiler yet I get this error.

サインインしてコメントする。


Rajeev Yadav
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
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
4lrdyD 2016 年 7 月 29 日
excuse me, if license('checkout','compiler') gives 1, but !mcc gives error, this is possible?

サインインしてコメントする。


Kavish
Kavish 2014 年 12 月 29 日
Was anyone successful in finding the solution to this problem?? Please inform ??

NEETHU PRAKASH
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
Giorgio Menallo 2017 年 4 月 11 日
I have the impression you are talking about a cracked copy of Matlab. Am I wrong?
Muzammil
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 ExchangeC Shared Library Integration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by