Developing standalone application, not transfering to computer without Matlab
3 views (last 30 days)
Show older comments
I am developing my first standalone application to run on a computer without Matlab. The GUI has compiled and runs on my computer, but when I transfer the .exe to a computer without Matlab it does not run. I have tried both downloading runtime and compiling with the runtime installer. Which files do I need to transfer to the computer without Matlab?
The readme file generated by the compiler says to transfer the .exe, .ctf, and MCRInstaller.exe. However, .ctf and MCRInstaller.exe are not generated by the compiler.
Three folders are generated by the compiler:
for_distribution
for_distribution_files_only
for_distribution_testing
Can someone please help me with this?
Thanks,
0 Comments
Answers (1)
Image Analyst
on 3 Nov 2015
You don't need any ctf file. What version are you running? All you need are your executable, the MCRInstaller (which needs to be installed), and any files that are to be used by your app during run-time, such as sample data files, settings files, Excel templates, etc.
Try the things listed in the FAQ: http://matlab.wikia.com/wiki/FAQ#My_standalone_executable_won.27t_run_on_the_target_computer._What_can_I_try.3F and come back to us if none of those work (which would be unlikely).
Your other option would be to put in tons of msgbox() or fprintf() statements along every step of the way to see how far it gets before it crashes.
3 Comments
Image Analyst
on 3 Nov 2015
Are you using Windows? Does the black console window come up, or did you suppress it with the -e flag on mcc? If it's there, it should definitely say something. How are you launching the program? Try getting a dos prompt in the executable's folder and typing the name in so that the window doesn't vanish when an error occurs. Are you sure you tried all the items on the FAQ list? Especially Dependency Walker?
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!