Install and Run Compiled Application on Linux

22 views (last 30 days)
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 Comment
John Fisher
John Fisher on 29 Mar 2021
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.

Sign in to comment.

Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!