From: Ender <jr147@msstate.edu>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: MatLab Compiler
Message-ID: <ef5b10f.12@webcrossing.raydaftYaTP>
Date: Fri, 22 Jun 2007 14:29:38 -0400
References: <ef5b10f.1@webcrossing.raydaftYaTP> <ef5b10f.3@webcrossing.raydaftYaTP> <ef5b10f.4@webcrossing.raydaftYaTP> <ef5b10f.5@webcrossing.raydaftYaTP> <ef5b10f.6@webcrossing.raydaftYaTP>
Lines: 52
NNTP-Posting-Host: 128.158.209.36
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:415318


Chris Cottingham wrote:
>
>
> Okay, to clear a few things up.
>
> In order to compile a function or set of functions in Matlab, you
> must have the compiler toolbox installed on whatever version you
> are
> using; if it works, then you obviously have the toolbox installed.
>
> To actually compile it, the command is 'mcc -m myfunction'
>
> In order to distribute this executable to other machines, the
> Matlab
> Component Runtime (MCR) corresponding to the Matlab version in
> which
> the executable was compiled must first be installed.
>
> This can be found in the matlab directory, then
> \toolbox\compiler\deploy\win32\. The file itself is called
> MCRInstaller.exe, and is approximately 150Mb.
>
> If an executable is compiled with one version of matlab, and the
> MCR
> is from a different version, it WILL NOT WORK.
>
> Once you have the MCR installed, executing the file of your code
> will
> take a while; the first time it runs, it will extract a few files
> into a folder. On exploring this, you will see that they are
> similar
> to matlab .m files (or .fig if you are using GUIs), but the code is
> encrypted.
>
> In order to successfully run your code executable, I believe you
> need
> four things; the MCR installed, the mycode.exe, the mycode.ctf, and
> possibly the mycode.prj
>
> Kind Regards
  
"Component Runtime (MCR) corresponding to the Matlab version in
> which
> the executable was compiled must first be installed.
>
> This can be found in the matlab directory, then
> \toolbox\compiler\deploy\win32\. The file itself is called
> MCRInstaller.exe, and is approximately 150Mb."

I have a question about this. So if I want to run my excutable on
another computer, I have to add the MCRInstaller.exe with my
excutable file?