Why does mcc generates Warning message about starup file even though the starup file is not present on MATLAB Search Path?

13 ビュー (過去 30 日間)
I am trying to create standalone application using mcc and getting the Warning message:
[Warning: Your deployed application may error out because file or folder paths
not present in the deployed environment may be included in your MATLAB startup
file. Use the MATLAB function "isdeployed" in your MATLAB startup file to
determine the appropriate execution environment when including file and folder
paths, and recompile your application.
I confirmed that there is no starup.m file present on MATLAB search path.
>> which startup.m
'startup.m' not found
>>mcc -m myprogram.m -a ./*.mexw64


MathWorks Support Team
MathWorks Support Team 2017 年 11 月 1 日
You are using -a flag to include certain mexw64 files. This is expected if startup.m exists in same location as mexw64 files.
The issue here is that MCC needs to tell requirements to add the folder to the path when analyzing any of the -a files. We are correctly adding this folder to the path, and the warning was added to better inform the users that the startup.m is being added to the CTF. If you really don't want the startup.m to be added you will need to move it.

その他の回答 (1 件)

Jessie Bessel
Jessie Bessel 2020 年 1 月 4 日
Hello! Did you solve the error? I have the same error and I can not figure it out! Can you help me?
  1 件のコメント
Sam Cook
Sam Cook 2020 年 2 月 24 日
You should be able to safely ignore the message, since it is only a warning. It exists simply to inform users that a startup.m file is added to the compiled archive.





Community Treasure Hunt

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

Start Hunting!

Translated by