Reputation: 153
I pray you have a good day. :-)
After two months I finally finished my "program" in MatLab. It computes recumbent bike's strain ans deformation analyticaly. But it's in form of a script.
When I start my
Start.m
Matlab command window will show me menu:
I choose from options and input 1 / 2 numbers per question.
Then it will do the computation with results:
https://i.sstatic.net/JJXTF.jpg ~ Text results
https://i.sstatic.net/BjEv5.jpg ~ Graph results
I want it to be executable in any machine without MatLab so I start the
deploytool ~ command
where I choose
Then I pick up my Start.m file and press Built
The full Built window log is like this:
I even putted there MCR installer and installed it, but when I start my .exe file, my computer "works for a while" ans in task manager I have Lehokolo.exe (using system resources for 20% CPU), but after aprox 30seconds, it will calm down and nothing happens...
MCR installs: Matlab Compiler Runtime 8.0
and before that it installs Visual C++ (64bit)
I tried it wih my frieds notebook but it won't work either. (Installed MCR + tried start my program)
My thoughts:
Deploytool can create .exe file only if I have GUI, not only a script.
I tried installing Windows SDK from this site: http://www.microsoft.com/en-us/download/details.aspx?id=8279 and one of threads here on mathworks.com said that it has to be installed -before- Matlab, so maybe I have to reinstall it.
If I type mbuild -setup and locate the compilers, the response is: No supported SDK or compiler was found on this computer. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2012b/win64.html Even though I installed the Windows SDK today again. With Visual C++ 2010 too. "No supported sdk compiler..."
I tried it on another machine with Matlab 2012b too and with the same result. 40seconds of "work" and then nothing.
Thanks for any response.
Upvotes: 1
Views: 525
Reputation:
I think you should chose "Standalone Application", not "Windows Standalone Application" in your project type if you want to build a CLI app. This may give you further hints.
Later edit: Don't worry, even if the programs starts in CLI, it will be able to create figures, plots and so on. The only drawback is that it will run "all the time" (its execution is not natively event-driven as an application launched within a GUI).
Upvotes: 2