How to create standalone executable which can run on other machine too.
2 次查看(过去 30 天)
显示 更早的评论
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
2011-3-3
"But I am not able to run" is not enough information. Error message would help - if any.
回答(3 个)
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.
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...
0 个评论
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 个评论
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.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!