How to create a log-file with "compiler.​build.stan​daloneAppl​ication", that the "Appliciation Compiler App" creates with "Create log file" under "Additional runtime settings"

조회 수: 11 (최근 30일)
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')

답변 (1개)

Erik Newton
Erik Newton 2024년 12월 3일
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:

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by