Install and Run Compiled Application on Linux

21 visualizaciones (últimos 30 días)
John Fisher
John Fisher el 25 de Mzo. de 2021
Comentada: John Fisher el 29 de Mzo. de 2021
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 comentario
John Fisher
John Fisher el 29 de Mzo. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by