Thread Subject: Running GUI as .exe

Subject: Running GUI as .exe

From: M.Mohsin Siraj

Date: 2 Aug, 2008 19:13:04

Message: 1 of 12

Hey GuYz
i ve made a GUI, using guide
then i converted it into .exe file using mcc...
Now the question is this .exe file is not running in any
other PC, even in the PC where MATLAB is installed...
kindly tell me how this .exe file can be run in any other
PC (except the PC where the gui file was made)...
I know about mcr... but how to install it???

Subject: Running GUI as .exe

From: Hongyu

Date: 2 Aug, 2008 19:45:53

Message: 2 of 12

On Aug 2, 3:13=A0pm, "M.Mohsin Siraj" <stylis...@mathworks.com> wrote:
> Hey GuYz
> i ve made a GUI, using guide
> then i converted it into .exe file using mcc...
> Now the question is this .exe file is not running in any
> other PC, even in the PC where MATLAB is installed...
> kindly tell me how this .exe file can be run in any other
> PC (except the PC where the gui file was made)...
> I know about mcr... but how to install it???

You need to run MCRInstall on the PC on which you like to run your exe
file. Also, iyou used recently versions of Matlab compiler to produce
your .exe, you also need to copy the corresponding .ctl file along
with the .exe file to the PC you like to run the .exe file.

Subject: Running GUI as .exe

From: M.Mohsin Siraj

Date: 2 Aug, 2008 19:59:04

Message: 3 of 12

Hongyu <hongyu_wu@yahoo.com> wrote in message <4743b600-
e444-481a-815d-
d95e749ee40b@a70g2000hsh.googlegroups.com>...
> On Aug 2, 3:13=A0pm, "M.Mohsin Siraj"
<stylis...@mathworks.com> wrote:
> > Hey GuYz
> > i ve made a GUI, using guide
> > then i converted it into .exe file using mcc...
> > Now the question is this .exe file is not running in
any
> > other PC, even in the PC where MATLAB is installed...
> > kindly tell me how this .exe file can be run in any
other
> > PC (except the PC where the gui file was made)...
> > I know about mcr... but how to install it???
>
> You need to run MCRInstall on the PC on which you like
to run your exe
> file. Also, iyou used recently versions of Matlab
compiler to produce
> your .exe, you also need to copy the corresponding .ctl
file along
> with the .exe file to the PC you like to run the .exe
file.


Thnx sir,
i have done the same thing, but its still not
working...MCRinstall will install a folder with
name "MathWorks"...
kindly reply wot could be any other reason...

Regards,

Subject: Running GUI as .exe

From: Bruno Luong

Date: 3 Aug, 2008 08:11:01

Message: 4 of 12

"M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in message
<g72ea8$7se$1@fred.mathworks.com>...
> Hongyu <hongyu_wu@yahoo.com> wrote in message <4743b600-
> e444-481a-815d-
> d95e749ee40b@a70g2000hsh.googlegroups.com>...
> > On Aug 2, 3:13=A0pm, "M.Mohsin Siraj"
> <stylis...@mathworks.com> wrote:
> > > Hey GuYz
> > > i ve made a GUI, using guide
> > > then i converted it into .exe file using mcc...
> > > Now the question is this .exe file is not running in
> any
> > > other PC, even in the PC where MATLAB is installed...
> > > kindly tell me how this .exe file can be run in any
> other
> > > PC (except the PC where the gui file was made)...
> > > I know about mcr... but how to install it???
> >
> > You need to run MCRInstall on the PC on which you like
> to run your exe
> > file. Also, iyou used recently versions of Matlab
> compiler to produce
> > your .exe, you also need to copy the corresponding .ctl
> file along
> > with the .exe file to the PC you like to run the .exe
> file.
>
>
> Thnx sir,
> i have done the same thing, but its still not
> working...MCRinstall will install a folder with
> name "MathWorks"...
> kindly reply wot could be any other reason...
>
> Regards,

We need more information from you to see what's wrong.

Go to windows "Run" menu (or Search menu on Vista), type
"cmd.exe".

A DOS console window will open

Go to the directory where you have installed you GUI exe
file by typing

> D:
> cd D:\Users\... \MyPath

Run it by typing

> GUI.exe

And report us any message you get.

Bruno

Subject: Running GUI as .exe

From: M.Mohsin Siraj

Date: 3 Aug, 2008 16:31:02

Message: 5 of 12

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in
message <g73p6l$69u$1@fred.mathworks.com>...
> "M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in
message
> <g72ea8$7se$1@fred.mathworks.com>...
> > Hongyu <hongyu_wu@yahoo.com> wrote in message
<4743b600-
> > e444-481a-815d-
> > d95e749ee40b@a70g2000hsh.googlegroups.com>...
> > > On Aug 2, 3:13=A0pm, "M.Mohsin Siraj"
> > <stylis...@mathworks.com> wrote:
> > > > Hey GuYz
> > > > i ve made a GUI, using guide
> > > > then i converted it into .exe file using mcc...
> > > > Now the question is this .exe file is not running
in
> > any
> > > > other PC, even in the PC where MATLAB is
installed...
> > > > kindly tell me how this .exe file can be run in
any
> > other
> > > > PC (except the PC where the gui file was made)...
> > > > I know about mcr... but how to install it???
> > >
> > > You need to run MCRInstall on the PC on which you
like
> > to run your exe
> > > file. Also, iyou used recently versions of Matlab
> > compiler to produce
> > > your .exe, you also need to copy the
corresponding .ctl
> > file along
> > > with the .exe file to the PC you like to run
the .exe
> > file.
> >
> >
> > Thnx sir,
> > i have done the same thing, but its still not
> > working...MCRinstall will install a folder with
> > name "MathWorks"...
> > kindly reply wot could be any other reason...
> >
> > Regards,
>
> We need more information from you to see what's wrong.
>
> Go to windows "Run" menu (or Search menu on Vista), type
> "cmd.exe".
>
> A DOS console window will open
>
> Go to the directory where you have installed you GUI exe
> file by typing
>
> > D:
> > cd D:\Users\... \MyPath
>
> Run it by typing
>
> > GUI.exe
>
> And report us any message you get.
>
> Bruno

Subject: Running GUI as .exe

From: M.Mohsin Siraj

Date: 3 Aug, 2008 16:35:03

Message: 6 of 12

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in
message <g73p6l$69u$1@fred.mathworks.com>...
> "M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in
message
> <g72ea8$7se$1@fred.mathworks.com>...
> > Hongyu <hongyu_wu@yahoo.com> wrote in message
<4743b600-
> > e444-481a-815d-
> > d95e749ee40b@a70g2000hsh.googlegroups.com>...
> > > On Aug 2, 3:13=A0pm, "M.Mohsin Siraj"
> > <stylis...@mathworks.com> wrote:
> > > > Hey GuYz
> > > > i ve made a GUI, using guide
> > > > then i converted it into .exe file using mcc...
> > > > Now the question is this .exe file is not running
in
> > any
> > > > other PC, even in the PC where MATLAB is
installed...
> > > > kindly tell me how this .exe file can be run in
any
> > other
> > > > PC (except the PC where the gui file was made)...
> > > > I know about mcr... but how to install it???
> > >
> > > You need to run MCRInstall on the PC on which you
like
> > to run your exe
> > > file. Also, iyou used recently versions of Matlab
> > compiler to produce
> > > your .exe, you also need to copy the
corresponding .ctl
> > file along
> > > with the .exe file to the PC you like to run
the .exe
> > file.
> >
> >
> > Thnx sir,
> > i have done the same thing, but its still not
> > working...MCRinstall will install a folder with
> > name "MathWorks"...
> > kindly reply wot could be any other reason...
> >
> > Regards,
>
> We need more information from you to see what's wrong.
>
> Go to windows "Run" menu (or Search menu on Vista), type
> "cmd.exe".
>
> A DOS console window will open
>
> Go to the directory where you have installed you GUI exe
> file by typing
>
> > D:
> > cd D:\Users\... \MyPath
>
> Run it by typing
>
> > GUI.exe
>
> And report us any message you get.
>
> Bruno





Thnx again sir for taking interest in the prob...
I did what you said the error is as follows:

"Fetal error loading library F:\... MY PATH\libut.dll
Error: The specified module could not be found."

I hope now you can have a better understanding,,,

Regards,

Subject: Running GUI as .exe

From: M.Mohsin Siraj

Date: 3 Aug, 2008 16:44:01

Message: 7 of 12

"M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in
message <g74mg6$erg$1@fred.mathworks.com>...
> "Bruno Luong" <b.luong@fogale.findmycountry> wrote in
> message <g73p6l$69u$1@fred.mathworks.com>...
> > "M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in
> message
> > <g72ea8$7se$1@fred.mathworks.com>...
> > > Hongyu <hongyu_wu@yahoo.com> wrote in message
> <4743b600-
> > > e444-481a-815d-
> > > d95e749ee40b@a70g2000hsh.googlegroups.com>...
> > > > On Aug 2, 3:13=A0pm, "M.Mohsin Siraj"
> > > <stylis...@mathworks.com> wrote:
> > > > > Hey GuYz
> > > > > i ve made a GUI, using guide
> > > > > then i converted it into .exe file using mcc...
> > > > > Now the question is this .exe file is not
running
> in
> > > any
> > > > > other PC, even in the PC where MATLAB is
> installed...
> > > > > kindly tell me how this .exe file can be run in
> any
> > > other
> > > > > PC (except the PC where the gui file was made)...
> > > > > I know about mcr... but how to install it???
> > > >
> > > > You need to run MCRInstall on the PC on which you
> like
> > > to run your exe
> > > > file. Also, iyou used recently versions of Matlab
> > > compiler to produce
> > > > your .exe, you also need to copy the
> corresponding .ctl
> > > file along
> > > > with the .exe file to the PC you like to run
> the .exe
> > > file.
> > >
> > >
> > > Thnx sir,
> > > i have done the same thing, but its still not
> > > working...MCRinstall will install a folder with
> > > name "MathWorks"...
> > > kindly reply wot could be any other reason...
> > >
> > > Regards,
> >
> > We need more information from you to see what's wrong.
> >
> > Go to windows "Run" menu (or Search menu on Vista),
type
> > "cmd.exe".
> >
> > A DOS console window will open
> >
> > Go to the directory where you have installed you GUI
exe
> > file by typing
> >
> > > D:
> > > cd D:\Users\... \MyPath
> >
> > Run it by typing
> >
> > > GUI.exe
> >
> > And report us any message you get.
> >
> > Bruno
>


Thnx again sir for taking interest in the prob...
I did what you said the error is as follows:

"Fetal error loading library F:\... MY PATH\libut.dll
Error: The specified module could not be found."

I hope now you can have a better understanding,,,

Regards,

Subject: Running GUI as .exe

From: Bruno Luong

Date: 3 Aug, 2008 21:32:40

Message: 8 of 12

"M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in message
<g74n8h$jgn$1@fred.mathworks.com>...
> >
>
>
> Thnx again sir for taking interest in the prob...
> I did what you said the error is as follows:
>
> "Fetal error loading library F:\... MY PATH\libut.dll
> Error: The specified module could not be found."
>
> I hope now you can have a better understanding,,,

Well, I guess the message is quite explicit: please check if
the libut.dll (presumably a library loaded by your program)
is at this place.

Bruno

Subject: Running GUI as .exe

From: M.Mohsin Siraj

Date: 4 Aug, 2008 05:54:02

Message: 9 of 12

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in
message <g7585o$a30$1@fred.mathworks.com>...
> "M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in
message
> <g74n8h$jgn$1@fred.mathworks.com>...
> > >
> >
> >
> > Thnx again sir for taking interest in the prob...
> > I did what you said the error is as follows:
> >
> > "Fetal error loading library F:\... MY PATH\libut.dll
> > Error: The specified module could not be found."
> >
> > I hope now you can have a better understanding,,,
>
> Well, I guess the message is quite explicit: please
check if
> the libut.dll (presumably a library loaded by your
program)
> is at this place.
>
> Bruno


respected sir,
i have copied all the missing libraries, but now the error
is

"Fetal error finding symbol mclEnableWarning Error:"

Your suggestions plzzz

Subject: Running GUI as .exe

From: Bruno Luong

Date: 4 Aug, 2008 06:34:01

Message: 10 of 12

"M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in message
<g765hq$hde$1@fred.mathworks.com>...

>
> "Fetal error finding symbol mclEnableWarning Error:"
>
> Your suggestions plzzz

This is more tricky. Usually because you have pb with the
MCR (Matlab Component Runtime).

- Does it install?
- Does the MCR version you use to *compile* and installed
version are compatible?
- Is there any path configuration problem such that the PC
cannot find the MCR?

Also you should delete the temporary folder Myprogram_mcr
(created where the Myprogram.exe file is located) and try to
run your program one more time.

I don't know an obvious fix because I don't know what are
you doing exactly with the compilation and installation. Sorry.

Bruno

Subject: Running GUI as .exe

From: M.Mohsin Siraj

Date: 6 Aug, 2008 03:54:02

Message: 11 of 12

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in
message <g767sp$5h1$1@fred.mathworks.com>...
> "M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in
message
> <g765hq$hde$1@fred.mathworks.com>...
>
> >
> > "Fetal error finding symbol mclEnableWarning Error:"
> >
> > Your suggestions plzzz
>
> This is more tricky. Usually because you have pb with the
> MCR (Matlab Component Runtime).
>
> - Does it install?
> - Does the MCR version you use to *compile* and installed
> version are compatible?
> - Is there any path configuration problem such that the PC
> cannot find the MCR?
>
> Also you should delete the temporary folder Myprogram_mcr
> (created where the Myprogram.exe file is located) and try
to
> run your program one more time.
>
> I don't know an obvious fix because I don't know what are
> you doing exactly with the compilation and installation.
Sorry.
>
> Bruno


Respected Sir,
your second point is very valid
"Does the MCR version you use to *compile* and installed
version are compatible?"
Actually i was using the MCR of my targeted machine insteed
of the machine on which i have designed my software... let
me check this, then i will reply you about the result..

Thnxx

Subject: Running GUI as .exe

From: M.Mohsin Siraj

Date: 19 Aug, 2008 03:24:02

Message: 12 of 12

"M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in message
<g7b78q$18t$1@fred.mathworks.com>...
> "Bruno Luong" <b.luong@fogale.findmycountry> wrote in
> message <g767sp$5h1$1@fred.mathworks.com>...
> > "M.Mohsin Siraj" <stylismoh@mathworks.com> wrote in
> message
> > <g765hq$hde$1@fred.mathworks.com>...
> >
> > >
> > > "Fetal error finding symbol mclEnableWarning Error:"
> > >
> > > Your suggestions plzzz
> >
> > This is more tricky. Usually because you have pb with
the
> > MCR (Matlab Component Runtime).
> >
> > - Does it install?
> > - Does the MCR version you use to *compile* and
installed
> > version are compatible?
> > - Is there any path configuration problem such that the
PC
> > cannot find the MCR?
> >
> > Also you should delete the temporary folder
Myprogram_mcr
> > (created where the Myprogram.exe file is located) and
try
> to
> > run your program one more time.
> >
> > I don't know an obvious fix because I don't know what
are
> > you doing exactly with the compilation and
installation.
> Sorry.
> >
> > Bruno
>
>
> Respected Sir,
> your second point is very valid
> "Does the MCR version you use to *compile* and installed
> version are compatible?"
> Actually i was using the MCR of my targeted machine
insteed
> of the machine on which i have designed my software...
let
> me check this, then i will reply you about the result..
>
> Thnxx



Thank you veryyyyy much sir,
My GUI is working now.....thnx alot

Tags for this Thread

Everyone's Tags:

gui(2)

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
gui Janardhanan murali 29 May, 2009 05:49:56
gui M.Mohsin Siraj 2 Aug, 2008 15:15:07
rssFeed for this Thread

Contact us at files@mathworks.com