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 个评论

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 Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by