How to create a log-file with "compiler.build.standaloneApplication", that the "Appliciation Compiler App" creates with "Create log file" under "Additional runtime settings"
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Erik Newton
el 3 de Dic. de 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 comentarios
Ver también
Categorías
Más información sobre Get Started with MATLAB Compiler en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!