Error in making stand alone program using matlab2013

1 次查看(过去 30 天)
hi everyone, I am using matlab 2013 for making standalone exe file for GUI for tone generator.
after ading main(.m) and additional (.fig) file when I click build option(using deploy command to invoke windows stand alone ) it takes some time and shows the error as below :
The file 'C:\Users\Sunil\Documents\MATLAB\startup.m' is empty (zero bytes long). This file cannot be added to the CTF archive because it will cause an error when the application or library is run. Add valid content to this file if your application or library requires this file. Failed to build CTF file: 'C:\Users\Sunil\Documents\Prj\piano\piano\src\piano.ctf'.
and build fails here. What is the reason for such behavior.
I have attached text file for complte log. Thanks

回答(1 个)

Sruthi Ayloo
Sruthi Ayloo 2014-7-7
It looks like the file “C:\Users\Sunil\Documents\MATLAB\startup.m” is empty and MATLAB Compiler cannot compile an empty file, hence the error message. "startup.m" executes commands of your choice when the MATLAB program starts. You could run “which –all startup.m” at the MATLAB command prompt and if there is only one instance of it, deleting the file “C:\Users\Sunil\Documents\MATLAB\startup.m” might resolve the error.

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by