executable matlab file question
2 views (last 30 days)
Show older comments
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 Comment
Azzi Abdelmalek
on 29 Aug 2012
where is the problem with installing MCR?, like any executables, some programs have to be installed.
Answers (4)
Azzi Abdelmalek
on 29 Aug 2012
Edited: Azzi Abdelmalek
on 29 Aug 2012
- you create an executable
- but to be executed in a pc without matlab, you have to add to your pack MCR installer
0 Comments
Walter Roberson
on 29 Aug 2012
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 Comments
Image Analyst
on 29 Aug 2012
- 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 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!