Bonjour,
Après plusieurs tentatives d'installation ou de configuration pour matlab, je n'arrive toujours pas a compiler le moindre programme, pourtant chez moi ça marche tout seul.
Le problème c'est que matlab n'a pas installé les compilateurs habituels et je ne sais pas pourquoi. J'ai donc fais installer visual studio C++ express mais rien n'y fait:
Meme si je lui demande de l'installer, il ne le fait pas puisqu'il renvoit none.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 >> mbuild -setup Please choose your compiler for building standalone MATLAB applications: Would you like mbuild to locate installed compilers [y]/n? Select a compiler: [0] None Compiler: 0 mbuild: No compiler selected. No action taken. >> mbuild -setup Please choose your compiler for building standalone MATLAB applications: Would you like mbuild to locate installed compilers [y]/n? n Select a compiler: [1] Microsoft Platform SDK 14.0 [2] Microsoft Visual C++ 2005 [3] Microsoft Visual C++ 2008 [0] None Compiler: 3 The default location for Microsoft Visual C++ 2008 compilers is C:\Program Files (x86)\Microsoft Visual Studio 9.0, but that directory does not exist on this machine. Use C:\Program Files (x86)\Microsoft Visual Studio 9.0 anyway [y]/n? n Please enter the location of your compiler: [C:\Program Files (x86)\Microsoft Visual Studio 9.0] C:\Program Files (x86)\Microsoft Visual Studio 9.0 Please verify your choices: Compiler: Microsoft Visual C++ 2008 Location: C:\Program Files (x86)\Microsoft Visual Studio 9.0 Are these correct [y]/n? y **************************************************************************** Warning: Applications/components generated using Microsoft Visual Studio 2008 require that the Microsoft Visual Studio 2008 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: D:\Documents and settings\ML300809\Application Data\MathWorks\MATLAB\R2008b\compopts.bat From template: C:\PROGRA~1\MATLAB\R2008b\bin\win64\mbuildopts\msvc90compp.bat Done . . . >> mbuild -setup Please choose your compiler for building standalone MATLAB applications: Would you like mbuild to locate installed compilers [y]/n? y Select a compiler: [0] None Compiler: 0 mbuild: No compiler selected. No action taken.
Ensuite si j'essaye de compiler un programme j'obtiens :
Pourtant chez moi quand je lui demande de m'afficher les compilateur, il m'en affiche 7 ou 8 dont lcc qui marche bien.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 >> mcc -mv Sutherland_air.m MATLAB:I18n:InconsistentLocale - The system locale setting, French (France)_France.1252, is different from the user locale setting, English (United States)_États-Unis.1252. Compiler version: 4.9 (R2008b) Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2008b\toolbox\compiler\patch. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2008b\toolbox\compiler\patch. Processing C:\Program Files\MATLAB\R2008b\toolbox\matlab\mcc.enc Processing include files... 2 item(s) added. Processing directories installed with MCR... The file mccExcludedFiles.log contains a list of functions excluded from the CTF archive. 2 item(s) added. Generating MATLAB path for the compiled application... Created 39 path items. Begin validation of MEX files: Tue Jul 21 13:53:21 2009 End validation of MEX files: Tue Jul 21 13:53:21 2009 Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2008b\toolbox\compiler\patch. Deleting 0 temporary MEX authorization files. Parsing file "D:\Documents and settings\ML300809\Desktop\Aeraulique\Sutherland_air.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files\MATLAB\R2008b\toolbox\compiler\deploy\deployprint.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files\MATLAB\R2008b\toolbox\compiler\deploy\printdlg.m" (Referenced from: "Compiler Command Line"). Generating file "Sutherland_air_main.c". Generating file "Sutherland_air_delay_load.c". Generating file "D:\Documents and settings\ML300809\Desktop\Aeraulique\readme.txt". Generating file "Sutherland_air_mcc_component_data.c". Executing command: mbuild -O -v -output "Sutherland_air" "Sutherland_air_main.c" "Sutherland_air_delay_load.c" "Sutherland_air_mcc_component_data.c" -link exe -env MCR_DELAYLOAD=/delayload:mclmcrrt79.dll -env MCR_DELAYLIB=delayimp.lib This is mbuild Copyright 1984-2006 The MathWorks, Inc. -> Default options filename found in D:\Documents and settings\ML300809\Application Data\MathWorks\MATLAB\R2008b ---------------------------------------------------------------- -> Options file = D:\Documents and settings\ML300809\Application Data\MathWorks\MATLAB\R2008b\compopts.bat -> COMPILER = cl -> Compiler flags: COMPFLAGS = -c -Zp8 -GR -W3 -EHsc- -Zc:wchar_t- -nologo /D_CRT_SECURE_NO_DEPRECATE OPTIMFLAGS = -O2 -DNDEBUG DEBUGFLAGS = -Z7 -MD arguments = Name switch = /Fo -> Pre-linking commands = -> LINKER = link -> Link directives: LINKFLAGS = /MACHINE:AMD64 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /LIBPATH:"C:\PROGRA~1\MATLAB\R2008b\extern\lib\win64\microsoft" /nologo /manifest /manifestfile:"Sutherland_air.msvc.manifest" mclmcrrt.lib LINKFLAGSPOST = Name directive = /out:"Sutherland_air.exe" File link directive = Lib. link directive = Rsp file indicator = @ -> Resource Compiler = rc /fo ".res" -> Resource Linker = ---------------------------------------------------------------- --> cl -c -Zp8 -GR -W3 -EHsc- -Zc:wchar_t- -nologo /D_CRT_SECURE_NO_DEPRECATE /FoD:\DOCUME~1\ML300809\LOCALS~1\TEMP\MBUILD~1\Sutherland_air_main.obj -IC:\PROGRA~1\MATLAB\R2008b\extern\include -IC:\PROGRA~1\MATLAB\R2008b\simulink\include -O2 -DNDEBUG D:\DOCUME~1\ML300809\DESKTOP\AERAUL~1\Sutherland_air_main.c C:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: Compile of 'Sutherland_air_main.c' failed. Error: An error occurred while shelling out to mbuild (error code = 128). Unable to build executable. ??? Error using ==> mcc Error executing mcc, return status = 1.
pour info:
Pourtant il y a bien MATLAB Compiler v4.9 ...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 >> ver ------------------------------------------------------------------------------------- MATLAB Version 7.7.0.471 (R2008b) MATLAB License Number: xxxxxx Operating System: Microsoft Windows XP x64 Version 5.2 (Build 3790: Service Pack 2) Java VM Version: Java 1.6.0_04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------- MATLAB Version 7.7 (R2008b) Simulink Version 7.2 (R2008b) Control System Toolbox Version 8.2 (R2008b) Image Processing Toolbox Version 6.2 (R2008b) MATLAB Compiler Version 4.9 (R2008b) Neural Network Toolbox Version 6.0.1 (R2008b) Optimization Toolbox Version 4.1 (R2008b) Parallel Computing Toolbox Version 4.0 (R2008b) Robust Control Toolbox Version 3.3.2 (R2008b) Signal Processing Toolbox Version 6.10 (R2008b) Simulink Control Design Version 2.4 (R2008b) System Identification Toolbox Version 7.2.1 (R2008b) Wavelet Toolbox Version 4.3 (R2008b) >>
Partager