Problèmes d'installation du compilateur matlab

Je suis en train de lancer un compilateur sur MATLAB mais les choses ne se passent pas comme prévu. Comment puis-je installer correctement MATLAB et comment puis-je vérifier ce qui se passe exactement tort. J'ai l'MATLAB r2013a version.

J'ai fait comme suit:

  1. J'ai téléchargé le SDK 7.1 le fichier de ici
    • dossier de destination pour les Outils: C:\Program Files\Microsoft SDKs\Windows\v7.1
    • dossier de destination pour les Échantillons: C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples
  2. J'ai ajouté mon compilateur répertoires de la variable d'environnement path
    • Panneau de configuration -> Système -> "Avancé" -> "variables d'Environnement".
    • nouveau système variable avec le nom "MSSdk".
    • valeur de cette variable: C:\Program Files\Microsoft SDKs\Windows\v7.1
    • fermez et redémarrez MATLAB

Ensuite, j'ai essayé de le configurer à l'aide de MATLAB suivant les étapes et à l'aide de la mex -setup commande:

  • après avoir choisi n par "aimeriez-vous mex pour localiser installé compilateurs" j'ai une liste de compilateurs (voir le commentaire ci-dessus). J'ai sélectionné 17:
    [1] Intel C++ 13.0 (with Microsoft Software Development Kit (SDK) linker) 
    [2] Intel C++ 13.0 (with Microsoft Visual C++ 2010 linker) 
    [3] Intel C++ 13.0 (with Microsoft Visual C++ 2012 linker) 
    [4] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker) 
    [5] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker) 
    [6] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker) 
    [7] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) 
    [8] Intel Visual Fortran 13 (with Microsoft Software Development Kit (SDK) linker) 
    [9] Intel Visual Fortran 13.0 (with Microsoft Visual C++ 2010 linker) 
    [10] Intel Visual Fortran 13.0 (with Microsoft Visual C++ 2012 linker) 
    [11] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker) 
    [12] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker) 
    [13] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker) 
    [14] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker) 
    [15] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) 
    [16] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) 
    [17] Microsoft Software Development Kit (SDK) 7.1 
    [18] Microsoft Visual C++ 2005 SP1 
    [19] Microsoft Visual C++ 2008 SP1 
    [20] Microsoft Visual C++ 2010 
    [21] Microsoft Visual C++ 2012 
  • Avertissement suivant:
    The default location for Microsoft Software Development Kit (SDK) compiler is:
    "C:\Program Files (x86)\Microsoft Visual Studio 10.0"
    but either that directory does not exist or the configuration is invalid.
  • Question:
    Use C:\Program Files (x86)\Microsoft Visual Studio 10.0 anyway [y]/n?
  • J'ai choisi n et a donné C:\Program Files\Microsoft SDKs\Windows\v7.1 mon nouveau répertoire

c'est ici que ça s'arrête:

Error: The Microsoft Windows Software Development Kit (SDK) installation is 
incomplete.  Please be sure that the .NET Framework is installed 
correctly before attempting to reinstall the SDK. 

EDIT:

Ma deuxième tentative, j'ai fait comme suit:

  • J'ai supprimé tous les fichiers visual basic (par la suppression de tous les éléments répertoriés comme visual basic dans les programmes)
  • Je l'ai ré-installé le SDK fichier à nouveau, mais décoché visual compilateurs c++ et Microsoft visual c++
  • Appliquer la patch à partir de Microsoft sur le SDK 7.1 installation (si pas déjà fait)
  • Réinstallé le Visual C++ 2010 Redistributable paquets: x86 et x64
  • Dans MATLAB, j'ai de nouveau utilisé mex -setup

Suivants est arrivé:

  • J'ai choisi y après la question:
    Would you like mex to locate installed compilers [y]/n?
    [1] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0 
  • J'ai choisi 1
  • puis-je obtenir les 2 sorties selon le choix de y ou n après avoir demandé si cela est correct

j'ai choisi n:

mex: No compiler selected. No action taken. 
************************************************************************** 
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: 
httpx://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. 
************************************************************************** 
Error using mex (line 206)
Unable to complete successfully.

j'ai choisi y:

*************************************************************************** 
Warning: MEX-files generated using Microsoft Windows Software Development 
Kit (SDK) require that Microsoft Visual Studio 2010 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\Gebruiker\AppData\Roaming\MathWorks\MATLAB\R2013a\mexopts.bat 
From template:              C:\PROGRA~1\MATLAB\R2013a\bin\win64\mexopts\mssdk71opts.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: 
httpx://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. 
************************************************************************** 
Error using mex (line 206)
Unable to complete successfully.

EDIT:

J'ai trouvé que le problème que je suis confronté semble être isolé à un problème avec Perl. Pendant un bref instant, la remarque suivante apparaît:

"Perl Command Line Interpreter has stopped working"

Ce post a eu un problème similaire. Je n'ai qu'à suivre. J'ai téléchargé Strawberry Perl et fait plusieurs remplacements.

  • remplacement de tous les fichiers exe
  • remplacement de perl .les fichiers exe

    Dans les deux cas, le message suivant apparaît

    Can't locate shellwords.pl in @INC (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib . C:\PROGRA~1\MATLAB\R2013a\bin\) at C:\Program Files\MATLAB\R2013a\bin\mex.pl line 159. 
    Error using mex (line 206)
    Unable to complete successfully.
  • remplacement de fichier bin avec le fichier bin de Strawberry Perl
    '"C:\Program Files\MATLAB\R2013a\sys\perl\win32\bin\perl.exe"' is not recognized as an internal or external command, 
    operable program or batch file. 
    Error using mex (line 206)
    Unable to complete successfully.

Toutefois, cela ne semble pas fonctionner. Il semble donc à deux choses:

  • Il ne fonctionne pas de cette façon (une seule personne a affirmé qu'il a fait)
  • Je suis de remplacer les mauvais fichiers dans MATLAB, avec celle de Strawberry Perl.

EDIT: Comme recommandé j'ai restauré le perl dans matlab à la version originale.


J'ai téléchargé Visual Studio Express 2012 et essayer de faire ce travail. Les problèmes sont toujours les mêmes.

source d'informationauteur user2694285 | 2013-08-23