How to convert a big project into .exe file

3 visualizaciones (últimos 30 días)
Jinyang
Jinyang el 21 de Sept. de 2014
Comentada: Bachtiar Muhammad Lubis el 24 de Jul. de 2019
Hello, everyone: Our team just finished a big project using matlab, we also created a GUI for it. Now we want to convert the GUI to a .exe file. But the problem is this project contains almost 50 .m files and they are located in different folders. If we use mcc -m filename to convert the GUI and we run the executable file, we will just get the error "Undefined function..." since those functions are in different folders , the matlab cannot find them. But it is also impossible to put all those functions in one folder/main file. So is there any way to convert it into .exe file?

Respuestas (1)

Image Analyst
Image Analyst el 21 de Sept. de 2014
If it runs in the MATLAB IDE, then the mcc command should find them. I do it all the time - have functions in different folders and it never has trouble finding them. If your executable doesn't find them then mcc wouldn't have found them and you would not have been able to run your code in the IDE without getting the same "Undefined function" error.
  3 comentarios
Image Analyst
Image Analyst el 22 de Sept. de 2014
You can use the -a command but it's really not necessary. Look in the CTF subfolders for the unpacked files and see if they're there. Copies of all the m-files are there in encrypted form.
Bachtiar Muhammad Lubis
Bachtiar Muhammad Lubis el 24 de Jul. de 2019
Hi Image Analyst.
i encounter this error:
"
Error: No source files were specified (-? for help).
"
while trying to run "
mcc
" command.
how's this happened ? and how can i fix this ?
this is the complete error:
Error: No source files were specified (-? for help).
Error using mcc
Error executing mcc, return status = 1 (0x1).
thanks in advance

Iniciar sesión para comentar.

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