How to create standalone executable which can run on other machine too.

2 vues (au cours des 30 derniers jours)
Sanjeet kumar
Sanjeet kumar le 3 Mar 2011
Hi All,
I have developed few Stand alone GUI in MATLAB which run fine on my machine( The machine on which i have developed the executable). But I am not able to run the same on any other machine. Even they have MATLAB or MCR installed in it.
Could you guys please help me on this? It will be very kind.
Thanks in advance.. Please mail be at (removed email address to prevent the user from spam)
Regards, Sanjeet Kumar Singh
  2 commentaires
Andreas Goser
Andreas Goser le 3 Mar 2011
"But I am not able to run" is not enough information. Error message would help - if any.
Andreas Goser
Andreas Goser le 3 Mar 2011
Also OSes and MathWorks product versions.

Connectez-vous pour commenter.

Réponses (3)

Sreedu
Sreedu le 3 Mar 2011
I had once a similar problem. My standalone will work only in my current working directory. Not even in other folder in my own system. It was because I had not declared a class object using %#function. May be it could find it in my current working dir but not anywhere else. When I added the step in the opening function everything was okay. It worked in other systems too.
  1 commentaire
Sanjeet kumar
Sanjeet kumar le 4 Mar 2011
Hi Sreedu,
Thanks a lot for your help. Can you please give me your sample code?
I would me more helpful for me in understanding.
Thanks in advance

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 3 Mar 2011
I suggest that you use the Windows Dependency Walker to figure out what is missing. Sometimes it is libraries that were provided with the compiler, sometimes it is system libraries, sometimes it is odd things you've never heard of before...

Andreas Goser
Andreas Goser le 3 Mar 2011
Assuming the error message is unclear or there is no error at all, I suggest to narrow don this issue by trying to deploy a very basic exeample. Like starting GUIDE and the take one of the examples, save en run them, build the stand-alone application and try on a different machine. Then you know whether this is an issue of the specifc application or a general / setup / environment issue.
  2 commentaires
Sanjeet kumar
Sanjeet kumar le 4 Mar 2011
Hi Andreas,
Thanks for your help,
The standalone which i develpoed on my machine works fine on fine on my machine. But it does not run on any other sysem. I get an error messgae saying few dll files are missing. I copied those dll files from my system and pasted it on the other system on which i was trying to run the standalone. After that the standalone is not thworing any error message but it is not giving me any output. Just executing with null output.
OS- window 7 on both system
Matlabversion 7.7
on the other machine i installed MCR.
Are these information sufficient for you? Can you please help me out in this?
Walter Roberson
Walter Roberson le 4 Mar 2011
Best to use the dependency walker anyhow. The program will be allowed to start running if the system can find all of the libraries that it was explicitly linked against, but it will crash (sometimes with no error message) if it then _dynamically_ calls upon a library not in that list.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by