Compiled code needs toolbox license installed and available, why?

5 ビュー (過去 30 日間)
Aryan
Aryan 2022 年 11 月 28 日
回答済み: Aryan 2022 年 12 月 1 日
I have code using R2021b update 4 including database toolbox use. On the local machine this code runs both normal and after compilation.
On a remote machine I have installed the appropriate runtime. On that machine all code runs until I reach the database function using the database toolbox.
Then on the remote machine I installed matlab R2021b update 4, there was no fix. Adding the toolbox license made it possible to run the compiled code.
Previous code was compiled on R2020b update 6 and had no issue, I have not found any release notes stating a difference about this subject, so I am at a loss.
How can I distribute my code without having to install both matlab and the toolbox at the different computer?
  2 件のコメント
Jan
Jan 2022 年 11 月 28 日
"On a remote machine I have installed the appropriate runtime. On that machine all code runs until I reach the database function using the database toolbox." - Now the most important part is missing: What do you observe now?
Aryan
Aryan 2022 年 11 月 28 日
編集済み: Aryan 2022 年 11 月 28 日
It crashes with "error using database", which happens when the line Conn = database('name','username','password') is executing. The crash does not happen on the uncompiled code, and it also does not happen anymore if I run the compiled code after installing full Matlab with the toolbox licence. Also this did not happen on 2020b.

サインインしてコメントする。

採用された回答

Aryan
Aryan 2022 年 12 月 1 日
I have figured this one out.
Apparently matlab was installed before the runtime, after changing the system path variables in windows to first show the runtime the compiled code now does not run against normal Matlab but agains the runtime.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by