Error in making stand alone program using matlab2013

2 views (last 30 days)
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

Answers (1)

Sruthi Ayloo
Sruthi Ayloo on 7 Jul 2014
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.

Categories

Find more on Application Deployment in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!