Install and Run Compiled Application on Linux

조회 수: 23 (최근 30일)
John Fisher
John Fisher 2021년 3월 25일
댓글: John Fisher 2021년 3월 29일
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개)

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by