MATLAB Compile in Linux, Executable not Executing

I have built a GUI (using GUIDE), and I am trying to compile it for distribution, using a Linux system. I can get it to compile (meaning I get an executable), and I have also been able to package it (I get an executable "package" file). However, when I try to run the program executable (not the "package"), I get an error saying it cannot find a required file. I'm thinking this has to do with RTE, but I'm not 100% certain of that. Also, the "package" executable does not execute, which I'm thinking may be due to system permissions (i.e. I'm not an admin, so I can't install).
This was done Friday at work, and I don't remember exactly what error messages I'm getting, but the stuff above is basically what I got. I can update Monday with exact error messages, if need be.
I'm looking for validation of my theory that I don't have RTE installed, and that I cannot install it because I'm not an admin.
Thanks!

 Réponse acceptée

Matt J
Matt J le 25 Nov 2012
Modifié(e) : Matt J le 25 Nov 2012

0 votes

The failure to install the MCR sounds like it could be due to permissions like you suppose.
As for the executable, there's too little info to diagnose that. Sometimes, the compiler can't be aware of a necessary file and doesn't include it in the CTF archive unless you use a pragma to force it in specifically

8 commentaires

I included all the files (the GUI driver .m file, the GUI .fig file, and another necessary .m file) when I built it. I will try and figure out install/run permissions, and see if I can get the RTE set up properly.
Matt J
Matt J le 26 Nov 2012
Well, which file does it complain is missing? That should give you (and us!) a clue whether it's one of your own, or something else.
Error I get on Linux when trying to execute executable:
error while loading shared libraries: libmwmclmcrrt.so.7.6: cannot open shared object file: No such file or directory
Error I get on Linxu when trying to execute package installer:
Exec format error invalid file (bad magic number): Exec format error
I'm using v7.6, which does not appear to create the .sh file. If I type the compiled filename followed by a path to my install of MCR, still get same error. If I set environment variable MCR to path to install of MCR, still get same error.
Matt J
Matt J le 28 Nov 2012
Modifié(e) : Matt J le 28 Nov 2012
Tech Support might be the answer for you. You paid a lot of money for it, after all! Or at least, the person who bought the compiler for you did.
Image Analyst
Image Analyst le 28 Nov 2012
Modifié(e) : Image Analyst le 28 Nov 2012
Is RTE what he calls the MCR (MATLAB Component Runtime)? Anyway, Paul can try the things in the FAQ first. The Dependency Walker is the most useful thing it talks about and solves most problems. He can also try to set the MCR_CACHE_ROOT environment to . (dot) to have it unpack all the stuff in the executable folder instead of in some hidden folder. See here for more info: http://www.mathworks.com/matlabcentral/answers/?search_submit=answers&query=MCR_Cache&term=MCR_Cache But certainly don't hesitate to call the Mathworks if you're current on your maintenance contract (which it sounds like you are not because you're using a 4 year old version).
I think part of this has to do with permissions - where I can and cannot install things - or the way my organization has things installed over the network. I'm working with my IT, and looking into if we still have a support contract.
Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by