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

15 visualizaciones (últimos 30 días)
kaida
kaida el 13 de Mzo. de 2014
Comentada: MUHAMMAD MOHSIN el 14 de Feb. de 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???

Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Mzo. de 2014
You could get that error if you had the MATLAB Compiler installed but do not have an available license for it.
  3 comentarios
Milad
Milad el 26 de Abr. de 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 el 14 de Feb. de 2018
I am also facing same problem. I am using Matlab 2013b. Anybody managed to solve this problem?

Iniciar sesión para comentar.

Más respuestas (4)

Milad
Milad el 26 de Abr. de 2014
Editada: Milad el 26 de Abr. de 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 comentario
Royi Avital
Royi Avital el 30 de Sept. de 2014
I have this problem. The mbuild recognizes the Compiler yet I get this error.

Iniciar sesión para comentar.


Rajeev Yadav
Rajeev Yadav el 30 de Nov. de 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 comentarios
Elias Linderman
Elias Linderman el 4 de Mayo de 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 el 29 de Jul. de 2016
excuse me, if license('checkout','compiler') gives 1, but !mcc gives error, this is possible?

Iniciar sesión para comentar.


Kavish
Kavish el 29 de Dic. de 2014
Was anyone successful in finding the solution to this problem?? Please inform ??

NEETHU PRAKASH
NEETHU PRAKASH el 4 de Ag. de 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 comentarios
Giorgio Menallo
Giorgio Menallo el 11 de Abr. de 2017
I have the impression you are talking about a cracked copy of Matlab. Am I wrong?
Muzammil
Muzammil el 2 de Mayo de 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?

Iniciar sesión para comentar.

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by