Install and Run Compiled Application on Linux

Hello all,
Recently I created a standalone applicaiton for Windows machines using MATLAB Compiler in Windows. This .exe works seemlessly between a user downloading, installing, and running it. There is minimal input required by the user.
Now I am attempting to do the same for Linux machines. I am able to compile the project into an .install file. Downloading and installing this will give a user both the project and MATLAB Compiler Runtime. The only issue is that when trying to run the program it errors out reporting: libmwlaunchermain.so not found. This can be remedied by following steps in https://www.mathworks.com/help/compiler/mcr-path-settings-for-run-time-deployment.html to update the LD_LIBRARY_PATH.
However I am looking for a way to make it so a user does not need to take these steps. Is there functionality to have the path get updated during the install process?

1 件のコメント

John Fisher
John Fisher 2021 年 3 月 29 日
UPDATE: For anyone else with this issue, I found a nice little workaround. Created a desktop shortcut for the executable where it calls sudo ./executable /usr/local/MATLAB_Runtime/v910
This sets up the path automatically everytime when the program is run, requiring a user to never need to update the path manually.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeC Shared Library Integration についてさらに検索

製品

リリース

R2021a

質問済み:

2021 年 3 月 25 日

コメント済み:

2021 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by