How to create a log-file with "compiler.build.standaloneApplication", that the "Appliciation Compiler App" creates with "Create log file" under "Additional runtime settings"
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
i try to replace the workaround for building standalone applications with the "Application Compiler App" with the command "compiler.build.standaloneApplication" using 2021a.
Everything works fine, except the Logfile that contains the same information that you can see in the command shell window, while executing the final application.
Usually the "Appliciation Compiler App" creates that log-file with checking "Create log file" under "Additional runtime settings".
How can i present that function to the compiler.build.standaloneApplication-syntax?
For example something link this:
buildResults = compiler.build.standaloneApplication(appFile,...
'OutputDir' ,ExeFile_Link ,'ExecutableName',ExeFile_Datei,'Verbose','On', ...
'WRITELOGFILE', 'MY_LOGFILE.log')
0 Kommentare
Antworten (1)
Erik Newton
am 3 Dez. 2024
This doesn't appear to be a supported option as of R2024b.
What I did as a workaround is to use the diary command at the start of my application. This has the added benefit of being run-time selectable; I have a logfilename setting in my config file.
This works for me in R2022b on Windows 10 Enterprise, but hasn't for other people/versions:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB Compiler finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!