How to deploy a matlab project with references

조회 수: 3 (최근 30일)
Jacopo Remondina
Jacopo Remondina 2021년 12월 17일
댓글: Rik 2021년 12월 17일
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