executable matlab file question
8 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have some questions
I compiled an executable file (.EXE) of my created GUI with:
mcc -m myfile.m.
i compiled it on a 64bit PC. I have read a lot in the internet but I'm not sure about everything.
- Is it right that I need 2 Exe files (one for 64 bit and one for 32)?
- On PC's without MATLAB I have to install the 180Mb big MCR Libraries on MATLAB?
- Is there any other solution to create an .exe file for PCs (without MATLAB) without installing the runtime
Thanks for help!
1 件のコメント
Azzi Abdelmalek
2012 年 8 月 29 日
where is the problem with installing MCR?, like any executables, some programs have to be installed.
回答 (4 件)
Azzi Abdelmalek
2012 年 8 月 29 日
編集済み: Azzi Abdelmalek
2012 年 8 月 29 日
- you create an executable
- but to be executed in a pc without matlab, you have to add to your pack MCR installer
0 件のコメント
Walter Roberson
2012 年 8 月 29 日
The same MCR version that the executable was created with, must be installed on the target computer, if you use MATLAB Compiler or NET Builder or Java Builder.
When you use MATLAB Compiler, it is possible to bundle MCR into the executable so that only one executable is being dealt with. Running the executable would cause MCR to be installed before anything else was done.
If you need to avoid having MCR installed, then the option is to use MATLAB Coder, which can generate C (or C++) code. Only a limited subset of MATLAB is supported, however.
0 件のコメント
Image Analyst
2012 年 8 月 29 日
- You need to compile with the version of the operating system that your target computer has. If it's a 32 bit computer, you need to run the 32 bit version, compile on that, and ship and install that. If you have a 64 bit target computer, you can create either a 32 bit or 64 bit version of your program. I have 2 MATLAB versions (64 and 32) but I ship just one EXE to the target computer, along with the MCR for that version.
- Yes, and the MCR must match that version that you compiled with and must be compatible with the number of bits of the target system.
- No. You must install the MCR on the target computer. Is there a problem with that?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!