Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
MatLab Compiler

Subject: MatLab Compiler

From: Ender

Date: 18 Jun, 2007 15:55:56

Message: 1 of 44

I am trying to convert matlab.m files into stand-alone excutables. I
was told by numerous people that a compiler was needed to do this. I
want to know if there is a free compiler that will allow me to create
these types of files. Also, if there is a compiler that does this are
there directions or an example that could show me how to create a
excutable out of my pre-existing matlab .m file?

-Ender-

Subject: MatLab Compiler

From: Madincea Vasile

Date: 18 Jun, 2007 22:55:08

Message: 2 of 44

there is no free compiler, only the compiler from the mathworks, for
which you need a license...

Ender wrote:
>
>
> I am trying to convert matlab.m files into stand-alone excutables.
> I
> was told by numerous people that a compiler was needed to do this.
> I
> want to know if there is a free compiler that will allow me to
> create
> these types of files. Also, if there is a compiler that does this
> are
> there directions or an example that could show me how to create a
> excutable out of my pre-existing matlab .m file?
>
> -Ender-

Subject: MatLab Compiler

From: sandeep patil

Date: 20 Jun, 2007 03:39:35

Message: 3 of 44

hi,
you can use the command( in matlab): mcc

Madincea Vasile wrote:
>
>
> there is no free compiler, only the compiler from the mathworks,
> for
> which you need a license...
>
> Ender wrote:
>>
>>
>> I am trying to convert matlab.m files into stand-alone
> excutables.
>> I
>> was told by numerous people that a compiler was needed to do
> this.
>> I
>> want to know if there is a free compiler that will allow me to
>> create
>> these types of files. Also, if there is a compiler that does
this
>> are
>> there directions or an example that could show me how to create
a
>> excutable out of my pre-existing matlab .m file?
>>
>> -Ender-

Subject: MatLab Compiler

From: MatLab

Date: 20 Jun, 2007 09:10:49

Message: 4 of 44

Ender wrote:
>
>
> I am trying to convert matlab.m files into stand-alone excutables.
> I
> was told by numerous people that a compiler was needed to do this.
> I
> want to know if there is a free compiler that will allow me to
> create
> these types of files. Also, if there is a compiler that does this
> are
> there directions or an example that could show me how to create a
> excutable out of my pre-existing matlab .m file?
>
> -Ender-

Subject: MatLab Compiler

From: MatLab

Date: 20 Jun, 2007 09:12:37

Message: 5 of 44

That's what somebody at work told me a day or so ago. He said that I
could create stand-alone excutables with the mcc command in MatLab. I
told another guy who was helponig me with MatLab, that I used the
compiler that was built into my MatLab v7.0. He said that he thought
even with version 7.0 an add on compiler was needed. I have
successfully created an excutable with the mcc function of MatLab. My
new question is this what is meant by a stand alone excutable. Also,
whenever I tried running the excutable on another computer that
didn't have MatLab, the file didn't work.

sandeep patil wrote:

>
>
> hi,
> you can use the command( in matlab): mcc
>
> Madincea Vasile wrote:
>>
>>
>> there is no free compiler, only the compiler from the
mathworks,
>> for
>> which you need a license...
>>
>> Ender wrote:
>>>
>>>
>>> I am trying to convert matlab.m files into stand-alone
>> excutables.
>>> I
>>> was told by numerous people that a compiler was needed to
do
>> this.
>>> I
>>> want to know if there is a free compiler that will allow me
> to
>>> create
>>> these types of files. Also, if there is a compiler that
does
> this
>>> are
>>> there directions or an example that could show me how to
> create
> a
>>> excutable out of my pre-existing matlab .m file?
>>>
>>> -Ender-

Subject: MatLab Compiler

From: M

Date: 20 Jun, 2007 10:41:52

Message: 6 of 44

MatLab wrote:
>
>
> That's what somebody at work told me a day or so ago. He said that
> I
> could create stand-alone excutables with the mcc command in MatLab.
> I
> told another guy who was helponig me with MatLab, that I used the
> compiler that was built into my MatLab v7.0. He said that he
> thought
> even with version 7.0 an add on compiler was needed. I have
> successfully created an excutable with the mcc function of MatLab.
> My
> new question is this what is meant by a stand alone excutable.
> Also,
> whenever I tried running the excutable on another computer that
> didn't have MatLab, the file didn't work.
>
> sandeep patil wrote:
>
>>
>>
>> hi,
>> you can use the command( in matlab): mcc
>>
>> Madincea Vasile wrote:
>>>
>>>
>>> there is no free compiler, only the compiler from the
> mathworks,
>>> for
>>> which you need a license...
>>>
>>> Ender wrote:
>>>>
>>>>
>>>> I am trying to convert matlab.m files into stand-alone
>>> excutables.
>>>> I
>>>> was told by numerous people that a compiler was needed
to
> do
>>> this.
>>>> I
>>>> want to know if there is a free compiler that will
allow
> me
>> to
>>>> create
>>>> these types of files. Also, if there is a compiler that
> does
>> this
>>>> are
>>>> there directions or an example that could show me how
to
>> create
>> a
>>>> excutable out of my pre-existing matlab .m file?
>>>>
>>>> -Ender-

From what I've read in other threads relating to the compiler you
have to install a redistributable package on every computer you want
to run your compiled program on.

If you're looking for a free alternative to the compiler you should
probably be coding in a different language. ;)

- M

Subject: MatLab Compiler

From: Ender

Date: 20 Jun, 2007 15:43:55

Message: 7 of 44

M wrote:
>
>
> MatLab wrote:
>>
>>
>> That's what somebody at work told me a day or so ago. He said
> that
>> I
>> could create stand-alone excutables with the mcc command in
> MatLab.
>> I
>> told another guy who was helponig me with MatLab, that I used
the
>> compiler that was built into my MatLab v7.0. He said that he
>> thought
>> even with version 7.0 an add on compiler was needed. I have
>> successfully created an excutable with the mcc function of
> MatLab.
>> My
>> new question is this what is meant by a stand alone excutable.
>> Also,
>> whenever I tried running the excutable on another computer that
>> didn't have MatLab, the file didn't work.
>>
>> sandeep patil wrote:
>>
>>>
>>>
>>> hi,
>>> you can use the command( in matlab): mcc
>>>
>>> Madincea Vasile wrote:
>>>>
>>>>
>>>> there is no free compiler, only the compiler from the
>> mathworks,
>>>> for
>>>> which you need a license...
>>>>
>>>> Ender wrote:
>>>>>
>>>>>
>>>>> I am trying to convert matlab.m files into
> stand-alone
>>>> excutables.
>>>>> I
>>>>> was told by numerous people that a compiler was
> needed
> to
>> do
>>>> this.
>>>>> I
>>>>> want to know if there is a free compiler that will
> allow
>> me
>>> to
>>>>> create
>>>>> these types of files. Also, if there is a compiler
> that
>> does
>>> this
>>>>> are
>>>>> there directions or an example that could show me
how
> to
>>> create
>>> a
>>>>> excutable out of my pre-existing matlab .m file?
>>>>>
>>>>> -Ender-
>
> From what I've read in other threads relating to the compiler you
> have to install a redistributable package on every computer you
> want
> to run your compiled program on.
>
> If you're looking for a free alternative to the compiler you should
> probably be coding in a different language. ;)
>
> - M

I think my version of MatLab already comes with the compiler. Because
the file that I have created enables me to run the context of the
code. It also creates a mcr file that I read in the Matlab help
screen is a MatLab Common Runtime file that is needed or added when
compiling code. I want to clarify what the file is that I have
created.

Subject: MatLab Compiler

From: Chris Cottingham

Date: 22 Jun, 2007 04:04:03

Message: 8 of 44

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

Subject: MatLab Compiler

From: Ender

Date: 22 Jun, 2007 09:09:06

Message: 9 of 44

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?

Subject: MatLab Compiler

From: Ender

Date: 22 Jun, 2007 09:29:41

Message: 10 of 44

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?

Subject: MatLab Compiler

From: Chris Cottingham

Date: 22 Jun, 2007 10:09:11

Message: 11 of 44

>> 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?

Sorry, that's the wrong directory. I mean the actual matlab folder...
as in C:\Matlab73\toolbox\compiler\deploy\win32

> 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?

I suspect that it is just because matlab of the same version as the
version used to create the executable is already installed on the
system; part of your system admin's installation procedure might
include the installation of the Matlab Component Runtime perhaps

Subject: MatLab Compiler

From: Marco D'Angelo

Date: 22 Jun, 2007 12:12:50

Message: 12 of 44

Chris Cottingham wrote:
>
>
>>> 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?
>
> Sorry, that's the wrong directory. I mean the actual matlab
> folder...
> as in C:\Matlab73\toolbox\compiler\deploy\win32
>
>> 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?
>
> I suspect that it is just because matlab of the same version as the
> version used to create the executable is already installed on the
> system; part of your system admin's installation procedure might
> include the installation of the Matlab Component Runtime perhaps
  
Hi guys,
I'm writing you to ask for some suggest concerning with matlab
compiler. I have both MLAB 6.5 and the 7.2 version. One the first one
I've the compiler toolbox installed, but not on the 7.2.Anyway I've
tried - under the 6.5- to compile a scripted .m program file using
the mcc command, but I was told that mcc command doesn't suite .m
files. What could I do?What am I missing?

Thx for you attention.

Best regards,

M.D.

Subject: MatLab Compiler

From: Ender

Date: 22 Jun, 2007 14:22:18

Message: 13 of 44

Marco D'Angelo wrote:
>
>
> Chris Cottingham wrote:
>>
>>
>>>> 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?
>>
>> Sorry, that's the wrong directory. I mean the actual matlab
>> folder...
>> as in C:\Matlab73\toolbox\compiler\deploy\win32
>>
>>> 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?
>>
>> I suspect that it is just because matlab of the same version as
> the
>> version used to create the executable is already installed on
the
>> system; part of your system admin's installation procedure
might
>> include the installation of the Matlab Component Runtime
perhaps
>
> Hi guys,
> I'm writing you to ask for some suggest concerning with matlab
> compiler. I have both MLAB 6.5 and the 7.2 version. One the first
> one
> I've the compiler toolbox installed, but not on the 7.2.Anyway I've
> tried - under the 6.5- to compile a scripted .m program file using
> the mcc command, but I was told that mcc command doesn't suite .m
> files. What could I do?What am I missing?
>
> Thx for you attention.
>
> Best regards,
>
> M.D.

Did you first turn the .m file into a function file?

Subject: MatLab Compiler

From: Ender

Date: 22 Jun, 2007 14:29:38

Message: 14 of 44

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?

Subject: MatLab Compiler

From: Marco D'Angelo

Date: 22 Jun, 2007 15:16:25

Message: 15 of 44

Ender wrote:
>
>
> Marco D'Angelo wrote:
>>
>>
>> Chris Cottingham wrote:
>>>
>>>
>>>>> 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?
>>>
>>> Sorry, that's the wrong directory. I mean the actual matlab
>>> folder...
>>> as in C:\Matlab73\toolbox\compiler\deploy\win32
>>>
>>>> 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?
>>>
>>> I suspect that it is just because matlab of the same
version
> as
>> the
>>> version used to create the executable is already installed
on
> the
>>> system; part of your system admin's installation procedure
> might
>>> include the installation of the Matlab Component Runtime
> perhaps
>>
>> Hi guys,
>> I'm writing you to ask for some suggest concerning with matlab
>> compiler. I have both MLAB 6.5 and the 7.2 version. One the
first
>> one
>> I've the compiler toolbox installed, but not on the 7.2.Anyway
> I've
>> tried - under the 6.5- to compile a scripted .m program file
> using
>> the mcc command, but I was told that mcc command doesn't suite
.m
>> files. What could I do?What am I missing?
>>
>> Thx for you attention.
>>
>> Best regards,
>>
>> M.D.
>
> Did you first turn the .m file into a function file?

No...:-)). How can I do?Thanks so much for your attention.

Bye,

Marco

Subject: MatLab Compiler

From: Steven Lord

Date: 22 Jun, 2007 17:06:48

Message: 16 of 44


"Ender" <jr147@msstate.edu> wrote in message
news:ef5b10f.12@webcrossing.raydaftYaTP...

*snip*

> 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?

Yes. The Deployment Process chapter of the MATLAB Compiler documentation
describes what you need to include when deploying to different types of
users.

http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/f12-998368.html

--
Steve Lord
slord@mathworks.com

Subject: MatLab Compiler

From: Ender

Date: 23 Jun, 2007 19:16:22

Message: 17 of 44

Marco D'Angelo wrote:
>
>
> Ender wrote:
>>
>>
>> Marco D'Angelo wrote:
>>>
>>>
>>> Chris Cottingham wrote:
>>>>
>>>>
>>>>>> 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?
>>>>
>>>> Sorry, that's the wrong directory. I mean the actual
> matlab
>>>> folder...
>>>> as in C:\Matlab73\toolbox\compiler\deploy\win32
>>>>
>>>>> 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?
>>>>
>>>> I suspect that it is just because matlab of the same
> version
>> as
>>> the
>>>> version used to create the executable is already
> installed
> on
>> the
>>>> system; part of your system admin's installation
> procedure
>> might
>>>> include the installation of the Matlab Component
Runtime
>> perhaps
>>>
>>> Hi guys,
>>> I'm writing you to ask for some suggest concerning with
> matlab
>>> compiler. I have both MLAB 6.5 and the 7.2 version. One the
> first
>>> one
>>> I've the compiler toolbox installed, but not on the
> 7.2.Anyway
>> I've
>>> tried - under the 6.5- to compile a scripted .m program
file
>> using
>>> the mcc command, but I was told that mcc command doesn't
> suite
> .m
>>> files. What could I do?What am I missing?
>>>
>>> Thx for you attention.
>>>
>>> Best regards,
>>>
>>> M.D.
>>
>> Did you first turn the .m file into a function file?
>
> No...:-)). How can I do?Thanks so much for your attention.
>
> Bye,
>
> Marco
   You first have to rename your file into a function file.
This is what I did for one of my programs.

function varargout=SimpBeam(varargin)

I named my SimpBeam.m into a function file. The function is written
such that I would put in inputs into the "varargin" but my program
does not use "varargrin" so whenever I run the program I just type
SimpBeam in the Command Window.
Try that and see what happens.

Subject: MatLab Compiler

From: Ender

Date: 25 Jun, 2007 13:08:07

Message: 18 of 44

My question is concerning this statement:

"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."

Could someone explain to me how this works. I want to be able to run
my excutable on another computer that doesn't have MatLab. I can run
my excutable in its specified folder without running MatLab, but
other who try running my excutable on machines that do not have
MatLab are having trouble because an error message comes up saying
that the excutable could not find a .dll file.
If I am understanding this correctly, I need to have the MCRI
Installer.exe file with my excutable whenever I want to run the
excutable. Also, if anyone wants to run my excutable on a machine
that does not have MatLab do they have to run the MCRI Installer
first before they run the excutable?

Subject: MatLab Compiler

From: Chris Cottingham

Date: 25 Jun, 2007 13:14:36

Message: 19 of 44

Ender wrote:
>
>
> My question is concerning this statement:
>
> "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."
>
> Could someone explain to me how this works. I want to be able to
> run
> my excutable on another computer that doesn't have MatLab. I can
> run
> my excutable in its specified folder without running MatLab, but
> other who try running my excutable on machines that do not have
> MatLab are having trouble because an error message comes up saying
> that the excutable could not find a .dll file.
> If I am understanding this correctly, I need to have the MCRI
> Installer.exe file with my excutable whenever I want to run the
> excutable. Also, if anyone wants to run my excutable on a machine
> that does not have MatLab do they have to run the MCRI Installer
> first before they run the excutable?

You don't need the MCRInstaller.exe in the same folder, but you do
need to run it on machines that do not have matlab on before you run
the executable

Subject: MatLab Compiler

From: Ender

Date: 25 Jun, 2007 14:36:41

Message: 20 of 44

Steven Lord wrote:
>
>
>
> "Ender" <jr147@msstate.edu> wrote in message
> news:ef5b10f.12@webcrossing.raydaftYaTP...
>
> *snip*
>
>> 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?
>
> Yes. The Deployment Process chapter of the MATLAB Compiler
> documentation
> describes what you need to include when deploying to different
> types of
> users.
>
> <http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/f12-998368.html>
>
> --I have questions about the information on this website. I think
that I am creating a compiled excutable for a .NET program.
I already have a "componentName.ctf", " MCRInstaller.exe",
"application.exe", I don't know how to get the "componentName.dll"

I am also still confused about the compilation process. I can run the
excutable on my computer, but whenever I send the excutable to
another computer, the program says that it cannot find a .dll file. I
have the MCRInstaller.exe program. Whenever I tried to excute the
program on my machine, I got a group of files that ranged from
InstMsiW.exe, MCRInstaller.msi, Setup.exe, Setup.ini, and the
filename_mcr folder that always appears whenever I run my original
excutable. I don't understand what I am supposed to do next so that I
can run my original excutable on another machine that doesn't have
MatLab already installed.

Ender

> Steve Lord
> slord@mathworks.com
>
>
>

Subject: MatLab Compiler

From: Ender

Date: 25 Jun, 2007 14:53:11

Message: 21 of 44

Chris Cottingham wrote:
>
>
> Ender wrote:
>>
>>
>> My question is concerning this statement:
>>
>> "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."
>>
>> Could someone explain to me how this works. I want to be able
to
>> run
>> my excutable on another computer that doesn't have MatLab. I
can
>> run
>> my excutable in its specified folder without running MatLab,
but
>> other who try running my excutable on machines that do not have
>> MatLab are having trouble because an error message comes up
> saying
>> that the excutable could not find a .dll file.
>> If I am understanding this correctly, I need to have the MCRI
>> Installer.exe file with my excutable whenever I want to run the
>> excutable. Also, if anyone wants to run my excutable on a
machine
>> that does not have MatLab do they have to run the MCRI
Installer
>> first before they run the excutable?
>
> You don't need the MCRInstaller.exe in the same folder, but you do
> need to run it on machines that do not have matlab on before you
> run
> the executable

Whenever I send my excutable to another user, I must make sure that I
send the MCRInstaller.exe? Correct. Once they install the
MCRINstaller.exe what files must they install from the subsequent
files that the installer creates.

Subject: MatLab Compiler

From: Ender

Date: 25 Jun, 2007 16:33:52

Message: 22 of 44

Ender wrote:
>
>
> Chris Cottingham wrote:
>>
>>
>> Ender wrote:
>>>
>>>
>>> My question is concerning this statement:
>>>
>>> "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."
>>>
>>> Could someone explain to me how this works. I want to be
able
> to
>>> run
>>> my excutable on another computer that doesn't have MatLab.
I
> can
>>> run
>>> my excutable in its specified folder without running
MatLab,
> but
>>> other who try running my excutable on machines that do not
> have
>>> MatLab are having trouble because an error message comes up
>> saying
>>> that the excutable could not find a .dll file.
>>> If I am understanding this correctly, I need to have the
MCRI
>>> Installer.exe file with my excutable whenever I want to run
> the
>>> excutable. Also, if anyone wants to run my excutable on a
> machine
>>> that does not have MatLab do they have to run the MCRI
> Installer
>>> first before they run the excutable?
>>
>> You don't need the MCRInstaller.exe in the same folder, but you
> do
>> need to run it on machines that do not have matlab on before
you
>> run
>> the executable
>
> Whenever I send my excutable to another user, I must make sure that
> I
> send the MCRInstaller.exe? Correct. Once they install the
> MCRINstaller.exe what files must they install from the subsequent
> files that the installer creates.

The MCRInstaller.exe is too big for me send to the end user so that
the user can run the program. This doesn't make sense. If I am
supposed to have this file to run the program on a computer that
doesn't have MatLab, yet it is too big send to the other machine
what's the use of the compiler?

Also I have assumed that my version of MatLab has compiled the
program that I specified. I am assuming this based of of the fact
that my computer:
1. created an myfunction.exe file
2. I have the MCRInstaller.exe in my toolbox

I need some advice on what to do next

Subject: MatLab Compiler

From: Ender

Date: 25 Jun, 2007 16:47:08

Message: 23 of 44

Ender wrote:
>
>
> Chris Cottingham wrote:
>>
>>
>> Ender wrote:
>>>
>>>
>>> My question is concerning this statement:
>>>
>>> "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."
>>>
>>> Could someone explain to me how this works. I want to be
able
> to
>>> run
>>> my excutable on another computer that doesn't have MatLab.
I
> can
>>> run
>>> my excutable in its specified folder without running
MatLab,
> but
>>> other who try running my excutable on machines that do not
> have
>>> MatLab are having trouble because an error message comes up
>> saying
>>> that the excutable could not find a .dll file.
>>> If I am understanding this correctly, I need to have the
MCRI
>>> Installer.exe file with my excutable whenever I want to run
> the
>>> excutable. Also, if anyone wants to run my excutable on a
> machine
>>> that does not have MatLab do they have to run the MCRI
> Installer
>>> first before they run the excutable?
>>
>> You don't need the MCRInstaller.exe in the same folder, but you
> do
>> need to run it on machines that do not have matlab on before
you
>> run
>> the executable
>
> Whenever I send my excutable to another user, I must make sure that
> I
> send the MCRInstaller.exe? Correct. Once they install the
> MCRINstaller.exe what files must they install from the subsequent
> files that the installer creates.

The MCRInstaller.exe is too big for me send to the end user so that
the user can run the program. This doesn't make sense. If I am
supposed to have this file to run the program on a computer that
doesn't have MatLab, yet it is too big send to the other machine
what's the use of the compiler?

Also I have assumed that my version of MatLab has compiled the
program that I specified. I am assuming this based of of the fact
that my computer:
1. created an myfunction.exe file
2. I have the MCRInstaller.exe in my toolbox

I need some advice on what to do next

Subject: MatLab Compiler

From: Chris Cottingham

Date: 25 Jun, 2007 18:39:35

Message: 24 of 44

Ender wrote:
>
>
> Ender wrote:
>>
>>
>> Chris Cottingham wrote:
>>>
>>>
>>> Ender wrote:
>>>>
>>>>
>>>> My question is concerning this statement:
>>>>
>>>> "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."
>>>>
>>>> Could someone explain to me how this works. I want to
be
> able
>> to
>>>> run
>>>> my excutable on another computer that doesn't have
> MatLab.
> I
>> can
>>>> run
>>>> my excutable in its specified folder without running
> MatLab,
>> but
>>>> other who try running my excutable on machines that do
> not
>> have
>>>> MatLab are having trouble because an error message
comes
> up
>>> saying
>>>> that the excutable could not find a .dll file.
>>>> If I am understanding this correctly, I need to have
the
> MCRI
>>>> Installer.exe file with my excutable whenever I want to
> run
>> the
>>>> excutable. Also, if anyone wants to run my excutable on
a
>> machine
>>>> that does not have MatLab do they have to run the MCRI
>> Installer
>>>> first before they run the excutable?
>>>
>>> You don't need the MCRInstaller.exe in the same folder, but
> you
>> do
>>> need to run it on machines that do not have matlab on
before
> you
>>> run
>>> the executable
>>
>> Whenever I send my excutable to another user, I must make sure
> that
>> I
>> send the MCRInstaller.exe? Correct. Once they install the
>> MCRINstaller.exe what files must they install from the
subsequent
>> files that the installer creates.
>
> The MCRInstaller.exe is too big for me send to the end user so that
> the user can run the program. This doesn't make sense. If I am
> supposed to have this file to run the program on a computer that
> doesn't have MatLab, yet it is too big send to the other machine
> what's the use of the compiler?
>
> Also I have assumed that my version of MatLab has compiled the
> program that I specified. I am assuming this based of of the fact
> that my computer:
> 1. created an myfunction.exe file
> 2. I have the MCRInstaller.exe in my toolbox
>
> I need some advice on what to do next
  

Unfortunately, that's just the way it is; there is no way around
having to distribute the MCRInstaller.exe with the file; it might be
possible to obtain the MCRInstaller.exe file from somewhere on the
internet perhaps... I'm not sure if Mathworks might provide it
online.

It just works out a lot easier to have a compiled executable that
draws on the functions in the Matlab Component Runtime environment,
than to have to code all those functions seperately into the
executable; the file itself would be almost as large then anyway.

Subject: MatLab Compiler

From: IR

Date: 26 Jun, 2007 10:42:37

Message: 25 of 44

MCR needs to be installed only ONCE on the target machine.
Afterwards you don't need to package it with your code.

 Ender wrote:
>
>
> Ender wrote:
>>
>>
>> Chris Cottingham wrote:
>>>
>>>
>>> Ender wrote:
>>>>
>>>>
>>>> My question is concerning this statement:
>>>>
>>>> "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."
>>>>
>>>> Could someone explain to me how this works. I want to
be
> able
>> to
>>>> run
>>>> my excutable on another computer that doesn't have
> MatLab.
> I
>> can
>>>> run
>>>> my excutable in its specified folder without running
> MatLab,
>> but
>>>> other who try running my excutable on machines that do
> not
>> have
>>>> MatLab are having trouble because an error message
comes
> up
>>> saying
>>>> that the excutable could not find a .dll file.
>>>> If I am understanding this correctly, I need to have
the
> MCRI
>>>> Installer.exe file with my excutable whenever I want to
> run
>> the
>>>> excutable. Also, if anyone wants to run my excutable on
a
>> machine
>>>> that does not have MatLab do they have to run the MCRI
>> Installer
>>>> first before they run the excutable?
>>>
>>> You don't need the MCRInstaller.exe in the same folder, but
> you
>> do
>>> need to run it on machines that do not have matlab on
before
> you
>>> run
>>> the executable
>>
>> Whenever I send my excutable to another user, I must make sure
> that
>> I
>> send the MCRInstaller.exe? Correct. Once they install the
>> MCRINstaller.exe what files must they install from the
subsequent
>> files that the installer creates.
>
> The MCRInstaller.exe is too big for me send to the end user so that
> the user can run the program. This doesn't make sense. If I am
> supposed to have this file to run the program on a computer that
> doesn't have MatLab, yet it is too big send to the other machine
> what's the use of the compiler?
>
> Also I have assumed that my version of MatLab has compiled the
> program that I specified. I am assuming this based of of the fact
> that my computer:
> 1. created an myfunction.exe file
> 2. I have the MCRInstaller.exe in my toolbox
>
> I need some advice on what to do next

Subject: MatLab Compiler

From: Ender

Date: 26 Jun, 2007 15:39:21

Message: 26 of 44

> Unfortunately, that's just the way it is; there is no way around
> having to distribute the MCRInstaller.exe with the file; it might
> be
> possible to obtain the MCRInstaller.exe file from somewhere on the
> internet perhaps... I'm not sure if Mathworks might provide it
> online.
>
> It just works out a lot easier to have a compiled executable that
> draws on the functions in the Matlab Component Runtime environment,
> than to have to code all those functions seperately into the
> executable; the file itself would be almost as large then anyway.
  
Could you explain what this means. How is it easier to have a
compiled excutable draw on the functions in the Matlab Component
Runtime environment, than to have to code all those functions
separately into the executable. I thought the executable was my
compiled code. I also understand that my executable will perform the
actions that are written into the compiled program, but I am confused
about what you said about the MatLab component Runtime part. I don't
have much experience compiling functions so if you could clarify this
for me please do.

Also is there a website or does Mathworks have a webpage that I could
direct someone to download the MCRInstaller.exe

Subject: MatLab Compiler

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 27 Jun, 2007 20:29:17

Message: 27 of 44

In article <ef5b10f.24@webcrossing.raydaftYaTP>,
Ender <jr147@msstate.edu> wrote:

>Could you explain what this means. How is it easier to have a
>compiled excutable draw on the functions in the Matlab Component
>Runtime environment, than to have to code all those functions
>separately into the executable. I thought the executable was my
>compiled code. I also understand that my executable will perform the
>actions that are written into the compiled program, but I am confused
>about what you said about the MatLab component Runtime part. I don't
>have much experience compiling functions so if you could clarify this
>for me please do.

If you only have one compiled matlab application installed on a system,
then the two possibilities are pretty much equivilent. If, however,
you want to have two or more compiled matlab applications installed
on the same system, then the bulk of the matlab runtime
(all the built-in features) would end up compiled into each of
the executables in what you propose -- which would needlessly duplicate
that functionality. So to make it efficient to have multiple
compiled Matlab applications on the same system Mathworks compiles
your code down into a bunch of calls to the Matlab innards, and it
shares a single copy of those Matlab innards between all the different
compiled matlab applications [that are compiled with the same Matlab
version.]

If everything were to get merged into one executable so that there
would be only one thing for you to send, then that one executable
would end up being 150 Mb plus the size of whatever your part was.
--
  "law -- it's a commodity"
                         -- Andrew Ryan (The Globe and Mail, 2005/11/26)

Subject: MatLab Compiler

From: Ender

Date: 28 Jun, 2007 09:24:32

Message: 28 of 44

Walter Roberson wrote:
>
>
> In article <ef5b10f.24@webcrossing.raydaftYaTP>,
> Ender <jr147@msstate.edu> wrote:
>
>>Could you explain what this means. How is it easier to have a
>>compiled excutable draw on the functions in the Matlab Component
>>Runtime environment, than to have to code all those functions
>>separately into the executable. I thought the executable was my
>>compiled code. I also understand that my executable will perform
> the
>>actions that are written into the compiled program, but I am
> confused
>>about what you said about the MatLab component Runtime part. I
> don't
>>have much experience compiling functions so if you could clarify
> this
>>for me please do.
>
> If you only have one compiled matlab application installed on a
> system,
> then the two possibilities are pretty much equivilent. If, however,
> you want to have two or more compiled matlab applications installed
> on the same system, then the bulk of the matlab runtime
> (all the built-in features) would end up compiled into each of
> the executables in what you propose -- which would needlessly
> duplicate
> that functionality. So to make it efficient to have multiple
> compiled Matlab applications on the same system Mathworks compiles
> your code down into a bunch of calls to the Matlab innards, and it
> shares a single copy of those Matlab innards between all the
> different
> compiled matlab applications [that are compiled with the same
> Matlab
> version.]
>
> If everything were to get merged into one executable so that there
> would be only one thing for you to send, then that one executable
> would end up being 150 Mb plus the size of whatever your part was.
> --
> "law -- it's a commodity"
> -- Andrew Ryan (The Globe and Mail,
> 2005/11/26)
>

This means that I cannot run MatLab code on a machine that does not
already contain MatLab. More specifically a machine that contains the
same version of MatLab that I compiled the code with. Unless there is
a website that I could down the MCRInstaller.exe for the version of
MatLab that I am using. If the first case that I mentioned is true,
then compiling a code is only good for systems of MatLab that are on
the same system because they will share the same version.

Subject: MatLab Compiler

From: Steven Lord

Date: 28 Jun, 2007 10:08:38

Message: 29 of 44


"Ender" <jr147@msstate.edu> wrote in message
news:ef5b10f.26@webcrossing.raydaftYaTP...
> Walter Roberson wrote:

*snip*

> This means that I cannot run MatLab code on a machine that does not
> already contain MatLab. More specifically a machine that contains the
> same version of MatLab that I compiled the code with. Unless there is
> a website that I could down the MCRInstaller.exe for the version of
> MatLab that I am using. If the first case that I mentioned is true,
> then compiling a code is only good for systems of MatLab that are on
> the same system because they will share the same version.

If you're on 32-bit Windows, you can use the MCRInstaller that ships with
MATLAB Compiler, as described in this technical support document:

http://www.mathworks.com/support/solutions/data/1-171Z6.html?solution=1-171Z6

On other platforms, you will need to build the MCRInstaller using BUILDMCR:

http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/buildmcr.html

The Deployment Process chapter of the MATLAB Compiler documentation tells
you how to work with the MCR and how to deploy your application to your end
users.

http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/f12-998368.html

--
Steve Lord
slord@mathworks.com

Subject: MatLab Compiler

From: Daryl Jones

Date: 28 Jun, 2007 12:30:40

Message: 30 of 44

I have the Matlab compiler and have used it to generate a plotting
program for some of our in-house codes. However, we need to be able
to annotate the charts generated with text boxes and arrows etc.
While this is possible when running the pogram through Matlab the
functionality does not carry through to the compiled executable. Am
I missing something? Is there a way to make the plot edit toolbar
available to users within the stand alone program?

Any help would be greatly appreciated.

Subject: MatLab Compiler

From: Ender

Date: 28 Jun, 2007 14:40:10

Message: 31 of 44

Steven Lord wrote:
>
>
>
> "Ender" <jr147@msstate.edu> wrote in message
> news:ef5b10f.26@webcrossing.raydaftYaTP...
>> Walter Roberson wrote:
>
> *snip*
>
>> This means that I cannot run MatLab code on a machine that does
> not
>> already contain MatLab. More specifically a machine that
contains
> the
>> same version of MatLab that I compiled the code with. Unless
> there is
>> a website that I could down the MCRInstaller.exe for the
version
> of
>> MatLab that I am using. If the first case that I mentioned is
> true,
>> then compiling a code is only good for systems of MatLab that
are
> on
>> the same system because they will share the same version.
>
> If you're on 32-bit Windows, you can use the MCRInstaller that
> ships with
> MATLAB Compiler, as described in this technical support document:
>
> <http://www.mathworks.com/support/solutions/data/1-171Z6.html?solution=1-171Z6>
>
> On other platforms, you will need to build the MCRInstaller using
> BUILDMCR:
>
> <http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/buildmcr.html>
>
> The Deployment Process chapter of the MATLAB Compiler documentation
> tells
> you how to work with the MCR and how to deploy your application to
> your end
> users.
>
> <http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/f12-998368.html>
>
> --
> Steve Lord
> slord@mathworks.com
>
>
> I know what files I need to give to the end user. That is not the
problem at this time. The problem is the MCRInstaller.exe is too
large to be sent electronically or at least it is from my end. The
end user can't run the excutable indpendently without the
MCRInstaller.exe, but I can't send the program because 76MB is too
large.

I also have a unzip.exe in my Win32 folder, but I am not sure what
that program does.

Subject: MatLab Compiler

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 28 Jun, 2007 18:51:58

Message: 32 of 44

In article <ef5b10f.29@webcrossing.raydaftYaTP>,
Ender <jr147@msstate.edu> wrote:

>> I know what files I need to give to the end user. That is not the
>problem at this time. The problem is the MCRInstaller.exe is too
>large to be sent electronically or at least it is from my end. The
>end user can't run the excutable indpendently without the
>MCRInstaller.exe, but I can't send the program because 76MB is too
>large.

Then your problem would not be solved if Matlab compiled everything
into one executable. Your executable would simply be 76 Mb larger
than it currently is (150 Mb for 7.4 I read.)

Mathworks isn't simply throwing junk into MCRInstaller.exe :
that's where the code is to actually *do* everything built-in.
You need that code to run -- whether the code all lives in one
file (your executable) or lives in two files (the part that is just your
program plus the runtime.)
--
  Prototypes are supertypes of their clones. -- maplesoft

Subject: MatLab Compiler

From: Ender

Date: 29 Jun, 2007 09:36:19

Message: 33 of 44

Walter Roberson wrote:
>
>
> In article <ef5b10f.29@webcrossing.raydaftYaTP>,
> Ender <jr147@msstate.edu> wrote:
>
>>> I know what files I need to give to the end user. That is
not
> the
>>problem at this time. The problem is the MCRInstaller.exe is too
>>large to be sent electronically or at least it is from my end.
The
>>end user can't run the excutable indpendently without the
>>MCRInstaller.exe, but I can't send the program because 76MB is
too
>>large.
>
> Then your problem would not be solved if Matlab compiled everything
> into one executable. Your executable would simply be 76 Mb larger
> than it currently is (150 Mb for 7.4 I read.)
>
> Mathworks isn't simply throwing junk into MCRInstaller.exe :
> that's where the code is to actually *do* everything built-in.
> You need that code to run -- whether the code all lives in one
> file (your executable) or lives in two files (the part that is just
> your
> program plus the runtime.)
> --
> Prototypes are supertypes of their clones. -- maplesoft
>
I still don't fully understand. The end user is having problems
excuting my program. Whenever the user tries to excute my program and
error comes up saying "mclmcrrt70.dll was not found. Re-installing
the application may fix the problem"
I don't know what that means. Whenever I run the same excutable on my
computer the program works flawlessly. I thought I needed to install
the MCRInstaller.exe on the end user's machine, but if your saying
that I need the MCRInstaller.exe to run the excutable program how
will I be able to distribute the installer.exe if the file is too
large to send?

Subject: MatLab Compiler

From: Peter Boettcher

Date: 29 Jun, 2007 10:16:58

Message: 34 of 44

Ender <jr147@msstate.edu> writes:

> I know what files I need to give to the end user. That is not the
> problem at this time. The problem is the MCRInstaller.exe is too
> large to be sent electronically or at least it is from my end. The
> end user can't run the excutable indpendently without the
> MCRInstaller.exe, but I can't send the program because 76MB is too
> large.

That's not a software problem. That's a distribution / networking /
whatever problem. Maybe it means you need to find a web site you can
secure with a password where you can post the runtime. Maybe you need
to snail-mail a CD with the runtime burned on it. Maybe your
networking folks can help you figure out another way to get the file
where it needs to go, like FTP.

I am not necessarily trying to defend the choices made by TMW in this
regard. The choice gives some significant advantages (speed, better
support for more functions, etc), and you've found one of the
significant drawbacks. Either way, it's a fact of life with the
current compiler.

-Peter

Subject: MatLab Compiler

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 29 Jun, 2007 16:56:04

Message: 35 of 44

In article <ef5b10f.31@webcrossing.raydaftYaTP>,
Ender <jr147@msstate.edu> wrote:

>I still don't fully understand. The end user is having problems
>excuting my program. Whenever the user tries to excute my program and
>error comes up saying "mclmcrrt70.dll was not found. Re-installing
>the application may fix the problem"
>I don't know what that means. Whenever I run the same excutable on my
>computer the program works flawlessly.

Because you have Matlab fully installed on your computer, which
installed mclmcrrt70.dll in passing.

>I thought I needed to install
>the MCRInstaller.exe on the end user's machine, but if your saying
>that I need the MCRInstaller.exe to run the excutable program

The installer writes a whole series of files into appropriate locations,
I believe.

>how
>will I be able to distribute the installer.exe if the file is too
>large to send?

You don't. And if Mathworks supplied a method that compiled everything
into a single file, that single file would be too large to send as well.

If ~80 Mb is too large for you to distribute, then you are not
using a language which is suitable for your economic constraints.


Personally, I would note that burning a CD costs about 50 cents
these days, plus postage -- but you have declared the file as
"too large to send", and we must presume that you explored such
alternatives before (repeatedly) making that statement; along
with alternatives such as uploading the file once to one of the many
file upload sites and telling your several customers where to find it.

Did you explore
http://www.mathworks.com/programs/trials/product_evals.html?s_cid=cta_trials
"Request a product trial" ?
Then at least *you* wouldn't be distributing the file, your users
would be getting it from somewhere else. As I don't know why ~80 Mb
is too large to distribute, I don't know whether that makes any
difference to you.
--
  Prototypes are supertypes of their clones. -- maplesoft

Subject: MatLab Compiler

From: Ender

Date: 29 Jun, 2007 21:13:35

Message: 36 of 44

Walter Roberson wrote:
>
>
> In article <ef5b10f.31@webcrossing.raydaftYaTP>,
> Ender <jr147@msstate.edu> wrote:
>
>>I still don't fully understand. The end user is having problems
>>excuting my program. Whenever the user tries to excute my
program
> and
>>error comes up saying "mclmcrrt70.dll was not found.
Re-installing
>>the application may fix the problem"
>>I don't know what that means. Whenever I run the same excutable
on
> my
>>computer the program works flawlessly.
>
> Because you have Matlab fully installed on your computer, which
> installed mclmcrrt70.dll in passing.
>
>>I thought I needed to install
>>the MCRInstaller.exe on the end user's machine, but if your
saying
>>that I need the MCRInstaller.exe to run the excutable program
>
> The installer writes a whole series of files into appropriate
> locations,
> I believe.
>
>>how
>>will I be able to distribute the installer.exe if the file is
too
>>large to send?
>
> You don't. And if Mathworks supplied a method that compiled
> everything
> into a single file, that single file would be too large to send as
> well.
>
> If ~80 Mb is too large for you to distribute, then you are not
> using a language which is suitable for your economic constraints.
>
>
> Personally, I would note that burning a CD costs about 50 cents
> these days, plus postage -- but you have declared the file as
> "too large to send", and we must presume that you explored such
> alternatives before (repeatedly) making that statement; along
> with alternatives such as uploading the file once to one of the
> many
> file upload sites and telling your several customers where to find
> it.
>
> Did you explore
> <http://www.mathworks.com/programs/trials/product_evals.html?s_cid=cta_trials>
> "Request a product trial" ?
> Then at least *you* wouldn't be distributing the file, your users
> would be getting it from somewhere else. As I don't know why ~80 Mb
> is too large to distribute, I don't know whether that makes any
> difference to you.
> --
> Prototypes are supertypes of their clones. -- maplesoft
>
  For the sake of clarification I'm going to explain my position a
little bit better. I plan on sending my excutable to a user that is
not in a close proximity to myself. So if I wanted to burn a CD I
would need to mail this CD to him.The price of a CD is irrelevant to
the questions that I asked. I don't want to take this approach to
accomplish my goal.

Furthermore, I don't have enough computer programming experience to
know that I could put my excutable on a website and distribute the
information that way.

Subject: MatLab Compiler

From: Paul Mennen

Date: 2 Jul, 2007 18:50:10

Message: 37 of 44

> Furthermore, I don't have enough computer programming
> experience to know that I could put my excutable on a
> website and distribute the information that way.

It doesn't require any programming experience to transfer
files this way. There are many web sites already out there
which can do this for you.

These two I believe allow you to transfer a file
as big as 1Gb:

www.dropsend.com
www.gigasize.com

Here are some more choices, although I think the
file size limit on most of these is 100 Mbytes:

www.dropload.com
www.yousendit.com
www.mailbigfile.com
www.mediafire.com
 <http://files.ww.com>

~Paul

Subject: MatLab Compiler

From: Ender

Date: 3 Jul, 2007 14:44:58

Message: 38 of 44

Paul Mennen wrote:
>
>
>> Furthermore, I don't have enough computer programming
>> experience to know that I could put my excutable on a
>> website and distribute the information that way.
>
> It doesn't require any programming experience to transfer
> files this way. There are many web sites already out there
> which can do this for you.
>
> These two I believe allow you to transfer a file
> as big as 1Gb:
>
> www.dropsend.com
> www.gigasize.com
>
> Here are some more choices, although I think the
> file size limit on most of these is 100 Mbytes:
>
> www.dropload.com
> www.yousendit.com
> www.mailbigfile.com
> www.mediafire.com
> <http://files.ww.com>
>
> ~Paul
  
Thanks

Subject: MatLab Compiler

From: Ender

Date: 30 Jul, 2007 08:40:39

Message: 39 of 44

I have compiled a function and made a stand-alone executable but I am
having problems with the function. After I run my executable. The DOS
menu displays a message that says

Error using ==>Function name
Too many output arguments

What does this mean and how can I fix the problem?

-Ender-

Subject: MatLab Compiler

From: Scott

Date: 30 Jul, 2007 21:24:39

Message: 40 of 44

Ender <jr147@msstate.edu> wrote in message <ef5b10f.37@webcrossing.raydaftYaTP>...
> I have compiled a function and made a stand-alone executable but I am
> having problems with the function. After I run my executable. The DOS
> menu displays a message that says
>
> Error using ==>Function name
> Too many output arguments
>
> What does this mean and how can I fix the problem?
>
> -Ender-

When Marco wrote:
 
" You first have to rename your file into a function file.
This is what I did for one of my programs.

function varargout=SimpBeam(varargin)"

did you write the same way? The varargout and varargin were just place-holders. If your standalone program doesn't produce an actual output, the "Too many output arguments" error can be generated. Also, if you produce an output, but there is no calling program that is looking for an input, that might produce a problem. Try writing it like this:

function myfunction(enders_input_argument_list)

If you have no input argument list, try this:

function myfunction()

Scott

Subject: MatLab Compiler

From: Ender

Date: 31 Jul, 2007 18:45:51

Message: 41 of 44

"Scott " <millers@yoyodyne.com> wrote in message <f8lkun$834$1@fred.mathworks.com>...
> Ender <jr147@msstate.edu> wrote in message <ef5b10f.37@webcrossing.raydaftYaTP>...
> > I have compiled a function and made a stand-alone executable but I am
> > having problems with the function. After I run my executable. The DOS
> > menu displays a message that says
> >
> > Error using ==>Function name
> > Too many output arguments
> >
> > What does this mean and how can I fix the problem?
> >
> > -Ender-
>
> When Marco wrote:
>
> " You first have to rename your file into a function file.
> This is what I did for one of my programs.
>
> function varargout=SimpBeam(varargin)"
>
> did you write the same way? The varargout and varargin were just place-holders. If your standalone program doesn't produce an actual output, the "Too many output arguments" error can be generated. Also, if you produce an output, but there is no calling program that is looking for an input, that might produce a problem. Try writing it like this:
>
> function myfunction(enders_input_argument_list)
>
> If you have no input argument list, try this:
>
> function myfunction()


I tried what you said and it worked. I called my function myfunction().

My new problem is whenever I run my stand-alone executable, the DOS menu does not disappear from the screen. Usually when I compile a program in MatLab, the executable runs the program then a DOS menu appears saying that the program is running. The DOS menu then goes away and I am left with my completed program.

Whenever I tried running my latest program, once I finished running my executable the DOS menu doesn't leave the screen unless I manually exit the DOS pop up window. The problem with this is that my executable also activates another program sends information to that other program, then receives information from that other program than writes to a file. I then use another program to run this process multiple times. I think because the DOS menu does not disappear from the screen by itself the program that I use to make my executable run multiple times does not work correctly. Is there anything that I can do to debug the DOS window so that it will disappear from the screen.

--Ender--

Subject: MatLab Compiler

From: Ender

Date: 31 Jul, 2007 18:57:41

Message: 42 of 44

I am not sure if this went through, but I tried sending a message earlier and I don't see it up here.

I have created a stand-alone executable. My stand-alone executable does not cancel or make disappear the DOS menu once the program completes. My stand-alone executable writes information to another program then activates the other program. My stand-alone executable then reads a file created from the other program then writes information to an output file. I am using another program to run this process multiple times. This other program is not running my executable correctly. I think it is because of the DOS window that doesn't disapper. The only way that I can get rid of the Dos menu is by manually exiting the pop up window. Is there any way to stop a Matlab program from displaying this DOS window, or if there is something that I can do to make this window disapper. Or if you have any other suggestions that might make my executable run correctly

--Ender--

Subject: MatLab Compiler

From: Ender

Date: 31 Jul, 2007 18:57:49

Message: 43 of 44

"Scott " <millers@yoyodyne.com> wrote in message <f8lkun$834$1@fred.mathworks.com>...
> Ender <jr147@msstate.edu> wrote in message <ef5b10f.37@webcrossing.raydaftYaTP>...
> > I have compiled a function and made a stand-alone executable but I am
> > having problems with the function. After I run my executable. The DOS
> > menu displays a message that says
> >
> > Error using ==>Function name
> > Too many output arguments
> >
> > What does this mean and how can I fix the problem?
> >
> > -Ender-
>
> When Marco wrote:
>
> " You first have to rename your file into a function file.
> This is what I did for one of my programs.
>
> function varargout=SimpBeam(varargin)"
>
> did you write the same way? The varargout and varargin were just place-holders. If your standalone program doesn't produce an actual output, the "Too many output arguments" error can be generated. Also, if you produce an output, but there is no calling program that is looking for an input, that might produce a problem. Try writing it like this:
>
> function myfunction(enders_input_argument_list)
>
> If you have no input argument list, try this:
>
> function myfunction()
>
> Scott

Subject: MatLab Compiler

From: Ender

Date: 31 Jul, 2007 18:58:02

Message: 44 of 44

"Scott " <millers@yoyodyne.com> wrote in message <f8lkun$834$1@fred.mathworks.com>...
> Ender <jr147@msstate.edu> wrote in message <ef5b10f.37@webcrossing.raydaftYaTP>...
> > I have compiled a function and made a stand-alone executable but I am
> > having problems with the function. After I run my executable. The DOS
> > menu displays a message that says
> >
> > Error using ==>Function name
> > Too many output arguments
> >
> > What does this mean and how can I fix the problem?
> >
> > -Ender-
>
> When Marco wrote:
>
> " You first have to rename your file into a function file.
> This is what I did for one of my programs.
>
> function varargout=SimpBeam(varargin)"
>
> did you write the same way? The varargout and varargin were just place-holders. If your standalone program doesn't produce an actual output, the "Too many output arguments" error can be generated. Also, if you produce an output, but there is no calling program that is looking for an input, that might produce a problem. Try writing it like this:
>
> function myfunction(enders_input_argument_list)
>
> If you have no input argument list, try this:
>
> function myfunction()
>
> Scott

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us