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!