|
|
Probleme bei Standalone-Datei |
|
würstchen |

Forum-Newbie
|
 |
Beiträge: 3
|
 |
|
 |
Anmeldedatum: 16.08.11
|
 |
|
 |
Wohnort: ---
|
 |
|
 |
Version: ---
|
 |
|
|
 |
|
Verfasst am: 16.08.2011, 08:55
Titel: Probleme bei Standalone-Datei
|
 |
|
 |
|
Hallo liebes Forum,
welch ein Glück, dass es sowas auch in deutsch gibt ^^
Also gleich vorweg: Suche und Google wurden konsultiert, kann natürlich trotzdem sein, dass die Anwort auf mein Problem trotzdem irgendwo steht.
Ich will ein einfaches Programm ohne Matlab zum laufen bekommen. Habe verscheidene Tutorials durchgemacht und bekomme immer den selben fehler.
Bis jetzt habe ich aber nur rausbekommen, dass es entweder mit einem falsch angegebenem Pfad oder mit dem JDK zusammenhängt. Leider aber nicht wie genau ich das Problem beheben...
Hier mal der Compiler-Text:
>> mcc -mv graph
Compiler version: 4.9 (R2008b)
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 40 path items.
Begin validation of MEX files: Tue Aug 16 08:12:43 2011
End validation of MEX files: Tue Aug 16 08:12:43 2011
Deleting 0 temporary MEX authorization files.
Parsing file "C:\Program Files\MATLAB\R2008b\bin\graph.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 "graph_main.c".
Generating file "graph_delay_load.c".
Generating file "C:\Program Files\MATLAB\R2008b\bin\readme.txt".
Generating file "graph_mcc_component_data.c".
Executing command: mbuild -O -v -output "graph" "graph_main.c" "graph_delay_load.c" "graph_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 C:\Users\Stefan\AppData\Roaming\MathWorks\MATLAB\R2008b
----------------------------------------------------------------
-> Options file = C:\Users\Stefan\AppData\Roaming\MathWorks\MATLAB\R2008b\compopts.bat
-> COMPILER = lcc
-> Compiler flags:
COMPFLAGS = -c -Zp8 -I"C:\PROGRA~1\MATLAB\R2008b\sys\lcc\include" -noregistrylookup
OPTIMFLAGS = -DNDEBUG
DEBUGFLAGS = -g4
arguments =
Name switch = -Fo
-> Pre-linking commands =
-> LINKER = lcclnk
-> Link directives:
LINKFLAGS = -tmpdir "." -L"C:\PROGRA~1\MATLAB\R2008b\sys\lcc\lib" -libpath "C:\PROGRA~1\MATLAB\R2008b\extern\lib\win32\lcc"
LINKFLAGSPOST = mclmcrrt.lib
Name directive = -o "graph.exe"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler =
-> Resource Linker =
----------------------------------------------------------------
--> lcc -c -Zp8 -I"C:\PROGRA~1\MATLAB\R2008b\sys\lcc\include" -noregistrylookup -FoC:\USERS\STEFAN\APPDATA\LOCAL\TEMP\MBUILD~1\graph_main.obj -IC:\PROGRA~1\MATLAB\R2008b\extern\include -IC:\PROGRA~1\MATLAB\R2008b\simulink\include -DNDEBUG C:\PROGRA~1\MATLAB\R2008B\BIN\graph_main.c
--> lcc -c -Zp8 -I"C:\PROGRA~1\MATLAB\R2008b\sys\lcc\include" -noregistrylookup -FoC:\USERS\STEFAN\APPDATA\LOCAL\TEMP\MBUILD~1\graph_delay_load.obj -IC:\PROGRA~1\MATLAB\R2008b\extern\include -IC:\PROGRA~1\MATLAB\R2008b\simulink\include -DNDEBUG C:\PROGRA~1\MATLAB\R2008B\BIN\graph_delay_load.c
Warning C:\PROGRA~1\MATLAB\R2008B\BIN\graph_delay_load.c: 21 static `void function(void) FailedToLoadMCR' is not referenced
0 errors, 1 warnings
--> lcc -c -Zp8 -I"C:\PROGRA~1\MATLAB\R2008b\sys\lcc\include" -noregistrylookup -FoC:\USERS\STEFAN\APPDATA\LOCAL\TEMP\MBUILD~1\graph_mcc_component_data.obj -IC:\PROGRA~1\MATLAB\R2008b\extern\include -IC:\PROGRA~1\MATLAB\R2008b\simulink\include -DNDEBUG C:\PROGRA~1\MATLAB\R2008B\BIN\graph_mcc_component_data.c
Contents of C:\USERS\STEFAN\APPDATA\LOCAL\TEMP\MBUILD~1\mbuild_tmp.rsp:
C:\USERS\STEFAN\APPDATA\LOCAL\TEMP\MBUILD~1\graph_main.obj C:\USERS\STEFAN\APPDATA\LOCAL\TEMP\MBUILD~1\graph_delay_load.obj C:\USERS\STEFAN\APPDATA\LOCAL\TEMP\MBUILD~1\graph_mcc_component_data.obj
--> lcclnk -o "graph.exe" -tmpdir "." -L"C:\PROGRA~1\MATLAB\R2008b\sys\lcc\lib" -libpath "C:\PROGRA~1\MATLAB\R2008b\extern\lib\win32\lcc" @C:\USERS\STEFAN\APPDATA\LOCAL\TEMP\MBUILD~1\MBUILD~1.RSP mclmcrrt.lib
cannot open output file graph.exe:
C:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: Link of 'graph.exe' failed.
Error: An error occurred while shelling out to mbuild (error code = 2).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
Wenn ihr mir helfen könntet, wäre ich euch sehr dankbar.
Liebe Grüße, das Würstchen
|
|
|
|
|
würstchen |
Themenstarter

Forum-Newbie
|
 |
Beiträge: 3
|
 |
|
 |
Anmeldedatum: 16.08.11
|
 |
|
 |
Wohnort: ---
|
 |
|
 |
Version: ---
|
 |
|
|
 |
|
Verfasst am: 17.08.2011, 08:59
Titel:
|
 |
Kann mir denn keiner bei meinem Problem helfen?
|
|
|
Jan S |

Moderator
|
 |
Beiträge: 11.057
|
 |
|
 |
Anmeldedatum: 08.07.10
|
 |
|
 |
Wohnort: Heidelberg
|
 |
|
 |
Version: 2009a, 2016b
|
 |
|
|
 |
|
Verfasst am: 17.08.2011, 14:38
Titel:
|
 |
Hallo würstchen,
Hast Du Schreibrechte für die Datei in diesen Ordner:
"C:\PROGRA~1\MATLAB\R2008B\BIN\graph_main.c"
?
Ich würde niemals direkt in den BIN-Ordner der Matlab-Installation schreiben...
Ich habe aber keine Ahnung, ob dies das problem erzeugt.
Gruß, Jan
|
|
|
würstchen |
Themenstarter

Forum-Newbie
|
 |
Beiträge: 3
|
 |
|
 |
Anmeldedatum: 16.08.11
|
 |
|
 |
Wohnort: ---
|
 |
|
 |
Version: ---
|
 |
|
|
 |
|
Verfasst am: 17.08.2011, 15:16
Titel:
|
 |
Hi,
ok, hab mir jetzt n zusätzlichen ordner angelegt und noch dazu matlab "als administrator" gestartet (keine ahnung warum er das nicht von selbst macht)...
jetzt funktionier alles
danke!!!
|
|
|
|
|
Einstellungen und Berechtigungen
|
|
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
|
|
Impressum
| Nutzungsbedingungen
| Datenschutz
| FAQ
| RSS
Hosted by:
Copyright © 2007 - 2025
goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.
|
|