How to deploy a matlab project with references

3 次查看(过去 30 天)
Hi everybody,
I have a project (let's call it "MainProject") with some files, folders and everything in it. It also refere to others projects (i.e. "child project 1", "child project 2",...). In "MainProject" I have this file ("mainGUI") that is the one that do all the magic and allow the access to all the functionalities I need.
The source code is working great and thanks to the "Dependency Analyzer" tool I knwo I don't have any broken or misspelled calls anywhere. This is true till I load on my path everything included in any referenced project.
Now I have to produce a stand alone executable starting with my projects, an ideally it should behave live the source code. Usually I do so using the "Application compiler" app, selecting the file to run at startup ("mainGUI" in this case), set some other options (like output folders and author details) and the app do everything else.
One thing that this mathworks app is doing but not so great is to find the dependencies from the "mainGUI" file. I hoped to help it using the projects, but there seems to be any way to make these two features (projects and application compiler app) to work togheter.
Am I missing something? Is there any workaround? Do you know if Mathworks staff is working on something to integrate these two features?
Thanks in advance,
Jacopo
  5 个评论
Jacopo Remondina
Jacopo Remondina 2021-12-17
Uhmm....unfortunately I think that it will not work in my case: all my code is stored in a quite complicate folder tree, so I'm afraid your method will break quite soon.
Thanks anyway for the advice
Rik
Rik 2021-12-17
It works for me, I never meant to claim it would work for someone else.
Although I think with enough care it should be possible to create something relatively robust. Even if that might turn out to replicate projects.
The whole point of my way is to have a single m-file for each project. That means you don't actually have any dependencies to worry about (at least not m-files).

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by