How to create a log-file with "compiler.build.standaloneApplication", that the "Appliciation Compiler App" creates with "Create log file" under "Additional runtime settings"
2 次查看(过去 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')
0 个评论
回答(1 个)
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:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!