Matlab compiler does not find toolbox dependencies
3 次查看(过去 30 天)
显示 更早的评论
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
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
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
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
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
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?
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!