Thread Subject: run compiled exe file on another machine

Subject: run compiled exe file on another machine

From: Joey

Date: 28 Oct, 2007 12:12:07

Message: 1 of 19

Dear All:

I was told that "mclmcrrt76.dll" was not found when I try to run the
exe file on another machine with no matlab in it. Could you give me
some suggestions about how to fix the problem?

Thanks a lot,


Joey

Subject: run compiled exe file on another machine

From: ImageAnalyst

Date: 28 Oct, 2007 13:55:11

Message: 2 of 19

On Oct 28, 8:12 am, Joey <joey2...@gmail.com> wrote:
> Dear All:
>
> I was told that "mclmcrrt76.dll" was not found when I try to run the
> exe file on another machine with no matlab in it. Could you give me
> some suggestions about how to fix the problem?
>
> Thanks a lot,
>
> Joey
===================================
Joey:
Strange, you must have missed Randy's response even though the tree
for this thread shows that you responded to his message. Anyway, here
is Randy's response again, below mine. Your next reply could be just
whether this solved your problem or not.
Regards,
ImageAnalyst
===============================================

You have to have the runtime Matlab, MCR (Matlab Component
Runtime) installed on the target machine in order to run
compiled Matlab code. You need to locate the installer
called MCRInstaller.exe, copy it to the target machine, and
run it.

See instructions here:
http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index....
Tiny URL version:
http://tinyurl.com/2gzlvh


                  - Randy

Subject: run compiled exe file on another machine

From: "amitaglawe@gmail.com

Date: 29 Oct, 2007 06:30:36

Message: 3 of 19

On Oct 28, 7:55 am, ImageAnalyst <imageanal...@mailinator.com> wrote:
> On Oct 28, 8:12 am, Joey <joey2...@gmail.com> wrote:> Dear All:
>
> > I was told that "mclmcrrt76.dll" was not found when I try to run the
> > exe file on another machine with no matlab in it. Could you give me
> > some suggestions about how to fix the problem?
>
> > Thanks a lot,
>
> > Joey
>
> ===================================
> Joey:
> Strange, you must have missed Randy's response even though the tree
> for this thread shows that you responded to his message. Anyway, here
> is Randy's response again, below mine. Your next reply could be just
> whether this solved your problem or not.
> Regards,
> ImageAnalyst
> ===============================================
>
> You have to have the runtime Matlab, MCR (Matlab Component
> Runtime) installed on the target machine in order to run
> compiled Matlab code. You need to locate the installer
> called MCRInstaller.exe, copy it to the target machine, and
> run it.
>
> See instructions here:http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index....
> Tiny URL version:http://tinyurl.com/2gzlvh
>
> - Randy

I installed MCRInstaller.exe but still it gives me same error..what
the correct procedure?

Subject: run compiled exe file on another machine

From: Joey

Date: 29 Oct, 2007 11:59:11

Message: 4 of 19

> ===================================
> Joey:
> Strange, you must have missed Randy's response even though the tree
> for this thread shows that you responded to his message. Anyway, here
> is Randy's response again, below mine. Your next reply could be just
> whether this solved your problem or not.
> Regards,
> ImageAnalyst
> ===============================================

Yes, I have missed Randy's reponse. When I logged in, I can not see my
post from a list of my recent posts. I guess I did not post it
properly at the beginning, so I posted again. Now, I can see the post
was posted twice. Sorry for the inconvenience.

Thank you Randy, I will try the method you told me : )

Have a nice day!

Sincerely,

Joey

Subject: run compiled exe file on another machine

From: Joey

Date: 29 Oct, 2007 19:31:03

Message: 5 of 19

Dear Randy and ImageAnalyst:

Thank you for your suggestions. I have found that "MCRInstaller.exe"
and tried to installed it on a computer without matlab. I was told
that .NET framework is not installed, please install it first. How can
I install .NET framework? Where can I find a installation file?

By the way, if I develop the exe file for someone else, will it
violate the copyright of matlab if I also give this "MCRInstaller.exe"
to that person?

Thank you very much!

Joey

Subject: run compiled exe file on another machine

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

Date: 29 Oct, 2007 19:53:19

Message: 6 of 19

In article <1193686263.785577.259760@22g2000hsm.googlegroups.com>,
Joey <joey2007@gmail.com> wrote:
>Thank you for your suggestions. I have found that "MCRInstaller.exe"
>and tried to installed it on a computer without matlab. I was told
>that .NET framework is not installed, please install it first. How can
>I install .NET framework? Where can I find a installation file?

Internet Explorer -> Tools -> Windows Updates -> Custom Update
and in the list of Optional Updates, ask to install .NET 2
(I'm guessing; .NET 3 is out but probably not used by Matlab yet.)

--
   "Okay, buzzwords only. Two syllables, tops." -- Laurie Anderson

Subject: run compiled exe file on another machine

From: Joey

Date: 30 Oct, 2007 11:31:39

Message: 7 of 19

On Oct 29, 3:53 pm, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson)
wrote:
> In article <1193686263.785577.259...@22g2000hsm.googlegroups.com>,
>
> Joey <joey2...@gmail.com> wrote:
> >Thank you for your suggestions. I have found that "MCRInstaller.exe"
> >and tried to installed it on a computer without matlab. I was told
> >that .NET framework is not installed, please install it first. How can
> >I install .NET framework? Where can I find a installation file?
>
> Internet Explorer -> Tools -> Windows Updates -> Custom Update
> and in the list of Optional Updates, ask to install .NET 2
> (I'm guessing; .NET 3 is out but probably not used by Matlab yet.)
>
> --
> "Okay, buzzwords only. Two syllables, tops." -- Laurie Anderson

Thank you Walter, Randy and ImageAnalyst. The exe program finally
worked. I will try to compile a more complex code. By the way, could
anyone give me some suggestions about whether it is legal to copy that
"MCRInstaller.exe" for someone else so that they can run the compiled
exe file?

Best,

Joey

Subject: run compiled exe file on another machine

From: Chavo DeMatanzas

Date: 30 Oct, 2007 13:13:31

Message: 8 of 19

no distribution of matlab compiled execs is encouraged by
Matlab.


 Joey <joey2007@gmail.com> wrote in message
<1193743899.004709.119200@k79g2000hse.googlegroups.com>...
> On Oct 29, 3:53 pm, rober...@ibd.nrc-cnrc.gc.ca (Walter
Roberson)
> wrote:
> > In article
<1193686263.785577.259...@22g2000hsm.googlegroups.com>,
> >
> > Joey <joey2...@gmail.com> wrote:
> > >Thank you for your suggestions. I have found
that "MCRInstaller.exe"
> > >and tried to installed it on a computer without
matlab. I was told
> > >that .NET framework is not installed, please install
it first. How can
> > >I install .NET framework? Where can I find a
installation file?
> >
> > Internet Explorer -> Tools -> Windows Updates -> Custom
Update
> > and in the list of Optional Updates, ask to
install .NET 2
> > (I'm guessing; .NET 3 is out but probably not used by
Matlab yet.)
> >
> > --
> > "Okay, buzzwords only. Two syllables, tops." --
Laurie Anderson
>
> Thank you Walter, Randy and ImageAnalyst. The exe program
finally
> worked. I will try to compile a more complex code. By the
way, could
> anyone give me some suggestions about whether it is legal
to copy that
> "MCRInstaller.exe" for someone else so that they can run
the compiled
> exe file?
>
> Best,
>
> Joey
>

Subject: run compiled exe file on another machine

From: Randy Poe

Date: 30 Oct, 2007 15:01:27

Message: 9 of 19

On Oct 29, 3:31 pm, Joey <joey2...@gmail.com> wrote:
> Dear Randy and ImageAnalyst:
>
> Thank you for your suggestions. I have found that "MCRInstaller.exe"
> and tried to installed it on a computer without matlab. I was told
> that .NET framework is not installed, please install it first. How can
> I install .NET framework? Where can I find a installation file?
>
> By the way, if I develop the exe file for someone else, will it
> violate the copyright of matlab if I also give this "MCRInstaller.exe"
> to that person?
>
> Thank you very much!
>
> Joey

>From the Compiler help page
"Use MATLAB=AE Compiler to convert MATLAB=AE programs to
applications and libraries that you can distribute to end users
who do not have MATLAB installed."

Since MCRInstaller is part of the deployment, I would say
there is not a restriction on distributing it.

Sorry I didn't realize the problem with .NET. The documentation
does mention that:

"Note The MCR is version-specific, so make sure that you tell
end users of your components which version of the MCR is required.

If you are deploying .NET component applications to programmers
or end users, make sure to tell them to install .NET Framework
before installing the MCR. The MCRinstaller.exe must detect
the presence of .NET framework on a system for it to install
MCR .NET support. Alternatively, you can package .NET
Framework with the component installer that you provide to
them as part of your deployment package."

I see no restrictions or guidelines on trademark notices
mentioned anywhere in the compiler documentation. Sometimes
makers of a development product will require that you
include a statement like "Built with MATLAB (R)" on
your labeling and documentation, and will even specify
the size and placement of such labeling. I can't find any such
requirement here.

Perhaps someone from Mathworks will comment on the
distribution and marking restrictions/requirements?

               - Randy

Subject: run compiled exe file on another machine

From: Joey

Date: 30 Oct, 2007 15:37:40

Message: 10 of 19

I see, thank you.

Joey

On Oct 30, 9:13 am, "Chavo DeMatanzas" <sa...@yahoo.com> wrote:
> no distribution of matlab compiled execs is encouraged by
> Matlab.
>
> Joey <joey2...@gmail.com> wrote in message
>
> <1193743899.004709.119...@k79g2000hse.googlegroups.com>...> On Oct 29, 3:53 pm, rober...@ibd.nrc-cnrc.gc.ca (Walter
> Roberson)
> > wrote:
> > > In article
>
> <1193686263.785577.259...@22g2000hsm.googlegroups.com>,
>
> > > Joey <joey2...@gmail.com> wrote:
> > > >Thank you for your suggestions. I have found
>
> that "MCRInstaller.exe"
>
>
>
> > > >and tried to installed it on a computer without
> matlab. I was told
> > > >that .NET framework is not installed, please install
> it first. How can
> > > >I install .NET framework? Where can I find a
> installation file?
>
> > > Internet Explorer -> Tools -> Windows Updates -> Custom
> Update
> > > and in the list of Optional Updates, ask to
> install .NET 2
> > > (I'm guessing; .NET 3 is out but probably not used by
> Matlab yet.)
>
> > > --
> > > "Okay, buzzwords only. Two syllables, tops." --
> Laurie Anderson
>
> > Thank you Walter, Randy and ImageAnalyst. The exe program
> finally
> > worked. I will try to compile a more complex code. By the
> way, could
> > anyone give me some suggestions about whether it is legal
> to copy that
> > "MCRInstaller.exe" for someone else so that they can run
> the compiled
> > exe file?
>
> > Best,
>
> > Joey- Hide quoted text -
>
> - Show quoted text -

Subject: run compiled exe file on another machine

From: Joey

Date: 31 Oct, 2007 15:47:38

Message: 11 of 19

On Oct 30, 11:01 am, Randy Poe <poespam-t...@yahoo.com> wrote:
> On Oct 29, 3:31 pm, Joey <joey2...@gmail.com> wrote:
>
> > Dear Randy and ImageAnalyst:
>
> > Thank you for your suggestions. I have found that "MCRInstaller.exe"
> > and tried to installed it on a computer without matlab. I was told
> > that .NET framework is not installed, please install it first. How can
> > I install .NET framework? Where can I find a installation file?
>
> > By the way, if I develop the exe file for someone else, will it
> > violate the copyright of matlab if I also give this "MCRInstaller.exe"
> > to that person?
>
> > Thank you very much!
>
> > Joey
> >From the Compiler help page
>
> "Use MATLAB=AE Compiler to convert MATLAB=AE programs to
> applications and libraries that you can distribute to end users
> who do not have MATLAB installed."
>
> Since MCRInstaller is part of the deployment, I would say
> there is not a restriction on distributing it.
>
> Sorry I didn't realize the problem with .NET. The documentation
> does mention that:
>
> "Note The MCR is version-specific, so make sure that you tell
> end users of your components which version of the MCR is required.
>
> If you are deploying .NET component applications to programmers
> or end users, make sure to tell them to install .NET Framework
> before installing the MCR. The MCRinstaller.exe must detect
> the presence of .NET framework on a system for it to install
> MCR .NET support. Alternatively, you can package .NET
> Framework with the component installer that you provide to
> them as part of your deployment package."
>
> I see no restrictions or guidelines on trademark notices
> mentioned anywhere in the compiler documentation. Sometimes
> makers of a development product will require that you
> include a statement like "Built with MATLAB (R)" on
> your labeling and documentation, and will even specify
> the size and placement of such labeling. I can't find any such
> requirement here.
>
> Perhaps someone from Mathworks will comment on the
> distribution and marking restrictions/requirements?
>
> - Randy

Dear Randy:

Thank you very much for your kindly help. Your suggestions helps a
lot.

A sample stand alone executable file that could finish a simple
mathematic calculation was developed and tested on a pc without matlab
successfully. I met a problem in developping exe file using "mcc -m
mycode" mycode.m load a few subfuctions, load several neural networks
It works fine when I tested in matlab workspace. I was told that Class
":all:" is an unknown class, Element(s) of this class in array "com60"
have been converted to structures. The problem lies in the compiling
of ANN tool box. The mat data file in which the trained networks were
stored can not be loaded properly in the executable. Further more,
some commands in the ANN toolbox can not be recognized when compiled,
such as "sim" command.

How can I use Matlab compiler to finish this successfully, or do I
need to get another compiler to develop this executable?

Thanks a lot!

Joey

Subject: run compiled exe file on another machine

From: ImageAnalyst

Date: 1 Nov, 2007 15:37:20

Message: 12 of 19

On Oct 30, 9:13 am, "Chavo DeMatanzas" <sa...@yahoo.com> wrote:
> no distribution of matlab compiled execs is encouraged by
> Matlab.
>
=================================================
Nonsense.
You, as a developer, buy the compiler and can compile your MATLAB code
into a standalone executable. Then you can distrubute that executable
plus the MCRInstaller executable as much as you want with no
additional fee. It is encouraged by The Mathworks, in fact that's the
whole reason they created the compiler and runtime library in the
first place.

Not only that, but you can also install a complete version of the
MATLAB environment on your home computer so that you can work at home
without having to bring your work computer home with you.
Regards,
ImageAnalyst
===============================================================

Subject: run compiled exe file on another machine

From: Randy Poe

Date: 1 Nov, 2007 16:12:57

Message: 13 of 19

On Nov 1, 11:37 am, ImageAnalyst <imageanal...@mailinator.com> wrote:
> On Oct 30, 9:13 am, "Chavo DeMatanzas" <sa...@yahoo.com
> wrote:
> > no distribution of matlab compiled execs is encouraged by
> > Matlab.
>
> =================================================
> Nonsense.
> You, as a developer, buy the compiler and can compile your MATLAB code
> into a standalone executable. Then you can distrubute that executable
> plus the MCRInstaller executable as much as you want with no
> additional fee. It is encouraged by The Mathworks, in fact that's the
> whole reason they created the compiler and runtime library in the
> first place.

I think Chavo just forgot a comma, and intended to write this:

> > no, distribution of matlab compiled execs is encouraged by
> > Matlab.

> Not only that, but you can also install a complete version of the
> MATLAB environment on your home computer so that you can work at home
> without having to bring your work computer home with you.

Really? Does that work if you are site-licensed to run
N copies on the network at work? I'd love to run Matlab
at home.

                     - Randy

Subject: run compiled exe file on another machine

From: Tommie Heard

Date: 6 Nov, 2007 13:41:16

Message: 14 of 19

You will need to run the MCRInstaller.exe on the machine where you are trying to execute on. You will need Admin rights to run the installer. Once the MCR installer (MATLAB Runtime Component) has been installed, you will now be able to run your standalone executable.

Hope this helps...

Tommie

Subject: run compiled exe file on another machine

From: Joey

Date: 7 Nov, 2007 22:16:16

Message: 15 of 19



On Nov 6, 8:41 am, Tommie Heard <tommie.he...@arnold.af.mil> wrote:
> You will need to run the MCRInstaller.exe on the machine where you are trying to execute on. You will need Admin rights to run the installer. Once the MCR installer (MATLAB Runtime Component) has been installed, you will now be able to run your standalone executable.
>
> Hope this helps...
>
> Tommie

Thanks a lot, Tommie.

Joey

Subject: run compiled exe file on another machine

From: Chavo DeMatanzas

Date: 8 Nov, 2007 00:29:23

Message: 16 of 19

>
> I think Chavo just forgot a comma, and intended to write
this:
>
> > > no, distribution of matlab compiled execs is
encouraged by
> > > Matlab.

{me} Yes, that is what I meant to write.

> > Not only that, but you can also install a complete
version of the
> > MATLAB environment on your home computer so that you
can work at home
> > without having to bring your work computer home with
you.
>
> Really? Does that work if you are site-licensed to run
> N copies on the network at work? I'd love to run Matlab
> at home.
>
> - Randy

I think you need a special license if you go portable.

Also, if you use a VPN to login to your work (in my case)
network, and then use remote desktop to access your
computer, then run matlab on the computer at work ... it
does not allow you to Remote Desktop Matlab. Have others
run into this?

-- Chavo

Subject: run compiled exe file on another machine

From: Stefano

Date: 13 Nov, 2007 15:38:55

Message: 17 of 19

"Chavo DeMatanzas" <sa_jr@yahoo.com> wrote in message
<fgtl93$8gr$1@fred.mathworks.com>...
> >
> > I think Chavo just forgot a comma, and intended to write
> this:
> >
> > > > no, distribution of matlab compiled execs is
> encouraged by
> > > > Matlab.
>
> {me} Yes, that is what I meant to write.
>
> > > Not only that, but you can also install a complete
> version of the
> > > MATLAB environment on your home computer so that you
> can work at home
> > > without having to bring your work computer home with
> you.
> >
> > Really? Does that work if you are site-licensed to run
> > N copies on the network at work? I'd love to run Matlab
> > at home.
> >
> > - Randy
>
> I think you need a special license if you go portable.
>
> Also, if you use a VPN to login to your work (in my case)
> network, and then use remote desktop to access your
> computer, then run matlab on the computer at work ... it
> does not allow you to Remote Desktop Matlab. Have others
> run into this?
>
> -- Chavo

Actually I have another problem... at work I use Windows so
I have the Matlab version for that OS, but at home I use
Mac. So could you suggest any solution in this case?

Furthermore, is Matlab Compiler the only solution to create
an execs without convert the matlab function to c++ and then
create the GUI?
If I read correctly all the previous post I think so, but I
want to be sure before say to my company I need the Matlab
Compiler. It's not so cheap, but if it's the only way.

Stefano

Subject: run compiled exe file on another machine

From: Screwdriver223

Date: 13 Nov, 2007 17:26:38

Message: 18 of 19

On Nov 7, 7:29 pm, "Chavo DeMatanzas" <sa...@yahoo.com> wrote:

> Also, if you use a VPN to login to your work (in my case)
> network, and then use remote desktop to access your
> computer, then run matlab on the computer at work ... it
> does not allow you to Remote Desktop Matlab. Have others
> run into this?

I have used RealVNC (http://www.realvnc.com/products/download.html)
successfully with MATLAB in the past.

Subject: run compiled exe file on another machine

From: Chavo DeMatanzas

Date: 15 Nov, 2007 17:35:03

Message: 19 of 19

I should have been more clear ... if I connect remotely,
then try to run Matlab i get a license error, but I leave
matlab open then go home and remote desktop, then it works fine.

Regarding the question about Matlab for Windows at work and
at home you have the Mac version, the code should run the
same unless you are calling hardware not available on your
mac machine ... such as the winsound (sound card) it might
be different hardware, but check with forum and do some web
searches.



 Screwdriver223 <david.kolin@gmail.com> wrote in message
<1194974798.824821.312530@q5g2000prf.googlegroups.com>...
> On Nov 7, 7:29 pm, "Chavo DeMatanzas" <sa...@yahoo.com> wrote:
>
> > Also, if you use a VPN to login to your work (in my case)
> > network, and then use remote desktop to access your
> > computer, then run matlab on the computer at work ... it
> > does not allow you to Remote Desktop Matlab. Have others
> > run into this?
>
> I have used RealVNC
(http://www.realvnc.com/products/download.html)
> successfully with MATLAB in the past.
>

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
portable license Chavo DeMatanzas 7 Nov, 2007 19:30:23
networked license Chavo DeMatanzas 7 Nov, 2007 19:30:22
deploy executables Chavo DeMatanzas 30 Oct, 2007 09:15:07
rssFeed for this Thread

Contact us at files@mathworks.com