MATLAB Answers

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('/vlfe​at/toolbox​/vl_setup.​m') , but when I try to run my script file , it is giving error ?

7 views (last 30 days)
Anirudh Goyal
Anirudh Goyal on 9 Jun 2013
Answered: Sushant Hiwale on 10 Apr 2015
??? 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 ?

Answers (2)

Image Analyst
Image Analyst on 9 Jun 2013
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 Comments
Anirudh Goyal
Anirudh Goyal on 9 Jun 2013
Sir,
mcc -m searchImage.m -a /home/anirudh/vlfeat-0.9.16/toolbox/vl_setup.m
I have compiled using this also as suugested by you and given in the Faq's But still it is giving error .
./run_searchImage.sh /usr/local/MATLAB/R2010b/
??? Invalid MEX-file '/home/anirudh/.mcrCache7.14/search3/home/anirudh/vlfeat-0.9.16/toolbox/mex/mexglx/vl_sift.mexglx': libvl.so: cannot open shared object file: No such file or directory.
Error in ==> searchImage at 29
Invalid MEX-file '/home/anirudh/.mcrCache7.14/search3/home/anirudh/vlfeat-0.9.16/toolbox/mex/mexglx/vl_sift.mexglx': libvl.so: cannot open shared object file: No such file or directory. MATLAB:invalidMEXFile

Sign in to comment.


Sushant Hiwale
Sushant Hiwale on 10 Apr 2015
Try including the run command in the startup file in Matlab. This will run the VL_setup every time matlab is initialised.

Community Treasure Hunt

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

Start Hunting!

Translated by