Error in making stand alone program using matlab2013

1 visualización (últimos 30 días)
Sunil Kumar Yadav
Sunil Kumar Yadav el 1 de Jul. de 2014
Respondida: Sruthi Ayloo el 7 de Jul. de 2014
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

Respuestas (1)

Sruthi Ayloo
Sruthi Ayloo el 7 de Jul. de 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.

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by