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.8@webcrossing.raydaftYaTP>
Date: Fri, 22 Jun 2007 09:29:41 -0400
References: <ef5b10f.3@webcrossing.raydaftYaTP> <ef5b10f.4@webcrossing.raydaftYaTP> <ef5b10f.5@webcrossing.raydaftYaTP> <ef5b10f.6@webcrossing.raydaftYaTP> <ef5b10f.7@webcrossing.raydaftYaTP>
Lines: 72
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:415263


Ender wrote:
>
>
> 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
>
>
> Whenever I run my excutable, the program creates a mcr file. I
> looked
> in the \toolbox\compiler\deploy
>
> but there was no Win32 file. There were other files in the deploy
> subfolder, but they were all .m and .fig files. Why is it that
> whenever I created the mcr file that it did not also create the
> Win32
> file?

Also, I have successfully run the excutable in another folder with
just the .ctf and the .exe file. Whenever I run the file, it creates
the mcr file. Is my excutable able to run with just these files
because I already have MatLab on my computer or is it because I have
all the files that the excutable originally created in another folder
or is it possible that the excutable is able to run as is with just
the above files?