Matlab compiler does not find toolbox dependencies

조회 수: 7 (최근 30일)
Lawrence
Lawrence 2015년 4월 13일
댓글: martin 2017년 6월 20일
I'm trying to make a standalone application which uses a function from matlab stats toolbox. When I open the compiler window using deploytool, it does not grab any of the dependency files, UNLESS I copy and put entire stats toolbox folder in the same folder with my main m-file. Then it automatically finds all the dependencies.
I have all the toolbax paths in Matlab path. Anyone know how to detect dependencies without copying the entire folder?
Thanks.
  댓글 수: 4
Image Analyst
Image Analyst 2015년 4월 14일
If my answer below didn't help, then ask the Mathworks. You may still be under the 1 year maintenance contract since your version is only a year old.
martin
martin 2017년 6월 20일
If anyone else stumbles upon this question again in the future, just like I did, here is the solution: https://www.mathworks.com/support/bugreports/1059029

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

답변 (1개)

Image Analyst
Image Analyst 2015년 4월 14일
It should find them automatically. If your current folder is the folder of the m-file you're trying to compile, then let's take one of the dependencies you say it does not find when you try to compile. Let's say the function is called myfun(). What does this say if you type it on the command line:
which -all myfun
If it finds it there, I think it should find it when it compiles. If it doesn't use addpath to put that folder into your startup.m file, because the startup.m file gets included in your compiled app. So if you set the folder there, it should find it, but I really don't think you should have to mess with your startup.m file.
  댓글 수: 2
Greg
Greg 2017년 4월 14일
I'm encountering this same issue, and none of the solutions here work. The problem is also with a function from the stats toolbox. When I type 'which -all myfun' it finds the function, but deploytool doesn't find it.
Image Analyst
Image Analyst 2017년 4월 14일
Sounds strange. But the answer is still the same as I said up above: call the Mathworks. You paid a ton of money for the compiler so why not take advantage of the "free" tech support for it?

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

카테고리

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