フィルターのクリア

Developing standalone application, not transfering to computer without Matlab

1 回表示 (過去 30 日間)
stephen
stephen 2015 年 11 月 3 日
コメント済み: stephen 2015 年 11 月 3 日
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,

回答 (1 件)

Image Analyst
Image Analyst 2015 年 11 月 3 日
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 件のコメント
Image Analyst
Image Analyst 2015 年 11 月 3 日
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?
stephen
stephen 2015 年 11 月 3 日
The application is now running correctly. There were two problems. First, I had the wrong version of runtime installed (2015b instead of 2015a). Second, Windows was blocking the application and I was not forcing it to run. Now, the application is running properly. Thank you for all your help. This is a simple application I created to learn about the compiling process. I will be developing more application in the future and I am sure I will need your help again.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by