executable matlab file question

8 Ansichten (letzte 30 Tage)
Andreas
Andreas am 29 Aug. 2012
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.
  1. Is it right that I need 2 Exe files (one for 64 bit and one for 32)?
  2. On PC's without MATLAB I have to install the 180Mb big MCR Libraries on MATLAB?
  3. Is there any other solution to create an .exe file for PCs (without MATLAB) without installing the runtime
Thanks for help!
  1 Kommentar
Azzi Abdelmalek
Azzi Abdelmalek am 29 Aug. 2012
where is the problem with installing MCR?, like any executables, some programs have to be installed.

Melden Sie sich an, um zu kommentieren.

Antworten (4)

Azzi Abdelmalek
Azzi Abdelmalek am 29 Aug. 2012
Bearbeitet: Azzi Abdelmalek am 29 Aug. 2012
  1. you create an executable
  2. but to be executed in a pc without matlab, you have to add to your pack MCR installer

Andreas
Andreas am 29 Aug. 2012
hey, what do you mean with "1.you create an executable without matlab" I created my exe file with matlab.
2. ok, then there is no other option then create the exe file AND install the MCR before running on a computer without matlab?
thank you
  1 Kommentar
Azzi Abdelmalek
Azzi Abdelmalek am 29 Aug. 2012
i mean your executable don't contain matlab

Melden Sie sich an, um zu kommentieren.


Walter Roberson
Walter Roberson am 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.

Image Analyst
Image Analyst am 29 Aug. 2012
  1. 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.
  2. 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.
  3. No. You must install the MCR on the target computer. Is there a problem with that?

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by