I need help with Application compiler

조회 수: 1 (최근 30일)
Viet Duc
Viet Duc 2021년 9월 16일
답변: Image Analyst 2021년 9월 17일
Hello everyone
I NEED SOME HELP
I am trying to build Standalone App from Matlab as shown in the figure. When I run my code, it is ok.
However, it had some problems after I used Application Compiler to build a standalone app.
The app couldn't open and this message appeared: "The specified module could not be found"
I don't know how to solve this problem.
I think this happens with the path that I try to load the .dll library.
Could you please help me to solve this problem?
Thanks very much
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 9월 16일
Using cd() is not recommended. Changing the path is not recommended. You should be using ctfroot() and make your library directory relative to the directory the source code is in, so that it will automatically be built into the archive in the right place.
Viet Duc
Viet Duc 2021년 9월 17일
I have already removed cd() and made the library directory to the source code. However, it's still not open. This message still appear: "The specified module could not be found"

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2021년 9월 17일
If you shipped your library and had the user put it into some specific folder, then specify that folder fully, from the drive letter. Or else you're going to have to figure out from the relative path, which is not easy or trivial since the executable is not where you think it is (long story).

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by