Q :- I want to comile my code to convert into script file using mcc -m myfile.m but myfile.m is using external library (vl_feat) so I have included run('/vlfeat/toolbox/vl_setup.m') , but when I try to run my script file , it is giving error ?
Mostra commenti meno recenti
??? Error using ==> run at 65 /home/anirudh/vlfeat-0.9.16/toolbox/vl_setup.m not found.
Error in ==> searchImage at 7
Error using ==> run at 65 /home/anirudh/vlfeat-0.9.16/toolbox/vl_setup.m not found. MATLAB:run:FileNotFound
and vl_setup.m is there in vl_feat-0.9.16/toolbox/vl_setup.m only .
Any help regarding the above problem ?
Risposte (2)
Image Analyst
il 9 Giu 2013
0 voti
Have you tried all the suggestions in the FAQ yet: http://matlab.wikia.com/wiki/FAQ#MATLAB_Compiler_Toolbox?
Where exactly is this "run" line? In your code, on the command line, somewhere else? Where did you put it?
When you say "run my script file" do you mean "run my compiled executable on the target computer" or "run my m-file script on my own computer"?
3 Commenti
Anirudh Goyal
il 9 Giu 2013
Modificato: Anirudh Goyal
il 9 Giu 2013
Image Analyst
il 9 Giu 2013
Does vL_setup.m even run? If not, it's not finding it on the search path. Since you have just a relative path, it must be on the search path or else you have to put in the full path, not a relative path. I don't believe you can use addpath in compiled programs, so you either ship that file and install it in a known location, or else add that file to the mcc line with the -a option. It doesn't look like you took my suggestion to read the FAQ, or didn't understand it.
Anirudh Goyal
il 9 Giu 2013
Sushant Hiwale
il 10 Apr 2015
0 voti
Try including the run command in the startup file in Matlab. This will run the VL_setup every time matlab is initialised.
Categorie
Scopri di più su MATLAB Compiler in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!