Problem in "mbuild -setup" and configuration

1 vue (au cours des 30 derniers jours)
Mani Ahmadian
Mani Ahmadian le 26 Oct 2014
Commenté : Geoff Hayes le 27 Oct 2014
Hi, I'm master in VB.Net programming and now, I want to integrate MATLAB in VB.Net by use of my dll files converted from my m-files.
I use MATLAB 2014a x86(32 bit) in my PC and MATLAB 2014 x64(64 bit) in my laptop and visual studio 2010 ultimate x86 on both systems.
When I run command "mbuild -setup" to configure my PC I receive an error message as:
Error using mbuild (line 164)
Unable to complete successfully.
No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/win32.
I use this command to check my license:
>> computer
ans =
PCWIN
>> license('checkout','Compiler')
ans =
1
I'm sure I have installed Visual Studio on my PC and I don't understand the reason of this error message.
I have the same problem on my laptop, too.
Would you please guide me to solve the issue?
Thanks a lot
Mani
  3 commentaires
Mani Ahmadian
Mani Ahmadian le 27 Oct 2014
Modifié(e) : Mani Ahmadian le 27 Oct 2014
Hi, | Installed Microsoft Visual C++ 2010 Professional and configured it by use of "mbuild -setup" command as bellow:
>> mbuild -setup
MBUILD configured to use 'Microsoft Visual C++ 2010 Professional (C)' for C language compilation.
To choose a different language, select one from the following:
mex -setup C++ -client MBUILD
mex -setup FORTRAN -client MBUILD
Now I'm trying to create dll files by use of APPS > Library Compiler. After complete all fields, and click package button, I receive error message as bellow, too:
ant:
<ant>
<mkdir dir="C:\Documents and Settings\My Documents\MATLAB\test3\for_redistribution" />
<mkdir dir="C:\Documents and Settings\My Documents\MATLAB\test3\for_testing" />
</ant>
mcc -W 'dotnet:test3,Class1,0.0,private' -T link:lib -d 'C:\Documents and Settings\My Documents\MATLAB\test3\for_testing' -v 'C:\Documents and Settings\My Documents\MATLAB\test3.m' 'class{Class1:C:\Documents and Settings\My Documents\MATLAB\test3.m}'
Test checkout of feature 'Compiler' failed.
mcc failed.
What's wrong about my process? Would you please help me?
Thanks, Mani
Geoff Hayes
Geoff Hayes le 27 Oct 2014
Mani - you may want to look at the answer at http://www.mathworks.com/matlabcentral/answers/132882-problem-while-creating-exe-file which may give you an idea on how to proceed.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur C Shared Library Integration dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by