"Error:Cannot find CTF archive" on deployed application

32 vues (au cours des 30 derniers jours)
John Flavin
John Flavin le 6 Juin 2018
Réponse apportée : Pratik le 19 Déc 2024
I have compiled several .m files using the MATLAB Compiler into standalone applications. I then copy those applications into a Docker image which has been prepared with the MCR.
When I execute the applications within a Docker container, several of them run just fine. But one consistently fails with the message
Error:Cannot find CTF archive : <path>/<app_name>.ctf
As I understand it, the CTF archive should be produced by the Compiler and embedded into the application. As such, I don't have any CTF archives. Yet my other applications do not fail in this way, only this one.
How can I get around this error?
UPDATE
I removed docker from the loop entirely, and the same error occurs. All this is now happening on my Ubuntu VM with a full MATLAB installation. I can compile one of my scripts using MCC, but when I try to run the compiled executable against the very same MATLAB installation that compiled it, I get the message:
Error:Cannot find CTF archive
  2 commentaires
Saeed Alahmari
Saeed Alahmari le 16 Déc 2018
Were you able to find a solution for this?
Image Analyst
Image Analyst le 16 Déc 2018
Are you sure you ran the MCRInstaller.exe that corresponds to the version of MATLAB the exe was compiled with?
As a last resort, you might try changing the MCR_CACHE_ROOT environment variable to . (dot). See This Link

Connectez-vous pour commenter.

Réponses (1)

Pratik
Pratik le 19 Déc 2024
Hi John,
In addition to the above mentioned suggestions, a workaround could be to build every time before packaging.
Please contact Mathworks Technical Support if the issue still persists.

Catégories

En savoir plus sur Application Deployment dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by