addpath problem when building a standalone exe

8 vues (au cours des 30 derniers jours)
BY H
BY H le 4 Août 2021
Commenté : Walter Roberson le 5 Août 2021
Figure shows a snapshot of my main function.
Figure shows there are five depenecy (dir) included before I build exe.
After running the bulit standalone exe, the error pops out.
Does anyone encounter the same problem?

Réponses (2)

Image Analyst
Image Analyst le 5 Août 2021
Yep. Give the full path, starting from the root folder. The reason is that the executable folder is not where you think it is (long story - just trust me).
  1 commentaire
BY H
BY H le 5 Août 2021
I have tried but also failed.

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 5 Août 2021
Functions Not Supported for Compilation by MATLAB Compiler and MATLAB Compiler SDK
run
  4 commentaires
BY H
BY H le 5 Août 2021
Modifié(e) : Walter Roberson le 5 Août 2021
To add the following condition for check is feasible?
if ~(ismcc || isdeployed)
line 3-9
end
Walter Roberson
Walter Roberson le 5 Août 2021
No. Those functions still need to be run in order to establish proper state.
However, you did the addpath() so those functions should already be on the path, so you should not need run() unless you are trying to force it to use different vlfeat for the two different projects.
Replace the two run() with
vl_setup;
vl_setupnm;

Connectez-vous pour commenter.

Catégories

En savoir plus sur Search Path dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by