Matlab compiler does not find toolbox dependencies

7 visualizzazioni (ultimi 30 giorni)
Lawrence
Lawrence il 13 Apr 2015
Commentato: martin il 20 Giu 2017
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 Commenti
Image Analyst
Image Analyst il 14 Apr 2015
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 il 20 Giu 2017
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

Accedi per commentare.

Risposte (1)

Image Analyst
Image Analyst il 14 Apr 2015
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 Commenti
Greg
Greg il 14 Apr 2017
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 il 14 Apr 2017
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?

Accedi per commentare.

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by