Why does MATLAB Compiler give an error during packaging

33 次查看(过去 30 天)
I want to create a standalone application of a gui. Therefore I call 'deploytool', select the .mlapp file and choose 'package'. After creating the bin files, the Compiler gives the following error:
Failed to embed install bundle, /XXX/XXX, in the installer.
Update resource failed: 110
Failed to create the full installer.
No installer package created.
Thanks in advance, Fabian

采纳的回答

Harsh
Harsh 2018-10-2
There are several known causes for this error. Some potential things to check:
  1. Is the .mlapp file somehow "locked" or quarantined by some security tool? Do you have an antivirus software? If so, does the issue get resolved if you turn it off?
  2. Is the code being compiled from a Network location / USB drive? If so, please try changing the directory (folder) of all source files and the destination directory and make sure all the files being compiled are on the local machine. Delete all files generated by the previous compilation. And then compile the code again.
  3. This error can also occur when there is low low Java Heap space or when MATLAB does not have sufficient memory available. Try increasing the Java Heap space & Shutdown other processes on the machine and attempt to free up as much memory as possible while packaging.

更多回答(2 个)

Christophe Tilman
Christophe Tilman 2021-12-8
I got the same issue. To fix it, I had to stop my cloud synch (dropbox in my case, but I guess it may happen with others).
I think that by the time some files are created, the cloud service try to synchronize them. I guess this process lock the files for a few seconds which cause the error on Matlab compiler side who try to access them again.

Porna
Porna 2023-11-15
comment avez-vous fait pour arrêter votre synchronisation??

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by