addpath problem when building a standalone exe
Mostra commenti meno recenti

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?
Risposte (2)
Image Analyst
il 5 Ago 2021
0 voti
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 Commento
BY H
il 5 Ago 2021
Walter Roberson
il 5 Ago 2021
0 voti
Functions Not Supported for Compilation by MATLAB Compiler and MATLAB Compiler SDK
run
4 Commenti
Image Analyst
il 5 Ago 2021
If it's an m-file you're trying to run, just give the name of the function. Do not wrap it with run().
Walter Roberson
il 5 Ago 2021
The user is actively using the feature of run() of providing a path. matconvnet uses vlfeat but the version of vlfeatbbeing used for it is different than the vlfeat that the user wants to use for other purposes, so in that case, the path makes a difference: the user is deliberately selecting one particular one of the incompatible versions for one purpose, and a different one for a different purpose.
BY H
il 5 Ago 2021
Modificato: Walter Roberson
il 5 Ago 2021
Walter Roberson
il 5 Ago 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;
Categorie
Scopri di più su Search Path in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!