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

조회 수: 25 (최근 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 CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by