Standalone application cannot find ctf

I have successfully compiled a standalone application using the compiler GUI (Matlab 2019a).
I have also been able to install the application to the same machine.
When I try to start the application I get the following error message:
Cannot find the nonembedded CTF archive '{path to installed app\app}.ctf
Curiously, I have been compiling, installing, and running other applications successfully the same day on the same machine.
What am I missing here? I have searched MATLAB Answers/internet and found no solution.
Please advice.
EDIT 1:
After compiling the same application several times I finally got an executable which didn't encounter the problem stated above. It seems that the compiler is not stable. Is this a known issue?
EDIT 2:
After lengthy correspondence with MathWorks support, I finally "solved" this issue by placing all my MatLab files on a local drive. Compiling from a mapped network drive seems to be the culprit (though it has been working for many years, since version 2015b).

4 comentarios

Fang Li
Fang Li el 20 de Ag. de 2021
Thank you. I was having the same issue but problem solved after seeing your EDIT 2.
Mitesh
Mitesh el 14 de Abr. de 2022
I am having same issue. Been compiling this appilcation for so many year. Moving matlab21a and found this issue. Running this on linux RHL7.9.
Francisco Sacchetti
Francisco Sacchetti el 4 de Oct. de 2022
I am having same issue. Been compiling this appilcation for so many year. Moving matlab21a and found this issue. Same here!
Michael
Michael el 2 de En. de 2024
I am experiencing the same issue in R2022b on Windows 10 and the workaround still applies. By moving the files to a local drive I was able to run the compiled code.

Iniciar sesión para comentar.

Respuestas (2)

Shubham Kashyap
Shubham Kashyap el 10 de Jun. de 2020

0 votos

Use the following mcc command that does not embed the deployable CTF archive in binary executable.
>> mcc -m test.m -C
The above command will create a test.exe and a separate test.ctf file. When distributing the application to another machine, please make sure that test.exe and test.ctf are in a same folder.

1 comentario

Russell
Russell el 16 de Jul. de 2020
How does this work when using the GUI and not a command line "mcc" call?

Iniciar sesión para comentar.

Categorías

Más información sobre Application Deployment en Centro de ayuda y File Exchange.

Productos

Versión

R2019a

Etiquetas

Preguntada:

el 3 de Sept. de 2019

Comentada:

el 2 de En. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by