フィルターのクリア

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

1 回表示 (過去 30 日間)
Sanjeet kumar
Sanjeet kumar 2011 年 3 月 3 日
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 件のコメント
Andreas Goser
Andreas Goser 2011 年 3 月 3 日
"But I am not able to run" is not enough information. Error message would help - if any.
Andreas Goser
Andreas Goser 2011 年 3 月 3 日
Also OSes and MathWorks product versions.

サインインしてコメントする。

回答 (3 件)

Sreedu
Sreedu 2011 年 3 月 3 日
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 件のコメント
Sanjeet kumar
Sanjeet kumar 2011 年 3 月 4 日
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

サインインしてコメントする。


Walter Roberson
Walter Roberson 2011 年 3 月 3 日
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 2011 年 3 月 3 日
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 件のコメント
Sanjeet kumar
Sanjeet kumar 2011 年 3 月 4 日
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 2011 年 3 月 4 日
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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by