addpath problem when building a standalone exe
조회 수: 16 (최근 30일)
이전 댓글 표시

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?
댓글 수: 0
답변 (2개)
Image Analyst
2021년 8월 5일
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).
Walter Roberson
2021년 8월 5일
Functions Not Supported for Compilation by MATLAB Compiler and MATLAB Compiler SDK
run
댓글 수: 4
Walter Roberson
2021년 8월 5일
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;
참고 항목
카테고리
Help Center 및 File Exchange에서 Search Path에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!