From: andandgui isler on
i just loaded the MCR. In my program files i see that it installed as C:\Program Files\MATLAB\MATLAB Compiler Runtime\v711 .

but when i write deploytool on command window then there is nothing happen. What should i do ? i want to convert my m-file to .exe file
From: ImageAnalyst on
On Jun 6, 1:29 pm, "andandgui isler" <bosisler_...(a)hotmail.com> wrote:
>  i just loaded the MCR. In my program files i see that it installed as  C:\Program Files\MATLAB\MATLAB Compiler Runtime\v711 .
>
> but when i write deploytool on command window then there is nothing happen. What should i do ? i want to convert my m-file to .exe file

---------------------------------------------------------------------------------------------
Try just saying, on the command line:
mcc -m myapp.m
this should make an executable. You can run it form within the
command window with an exclamation point:
!myapp.exe
You can use deploytool, or another installer package such as Wise or
InstallShield, if you need to bundle a bunch of other files to
distribute with your app, such as documentation, DLL's, sample data
files, etc.
From: andandgui isler on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <10f64f20-0bd7-4bce-92dc-1bbdcb3f7ba2(a)x27g2000yqb.googlegroups.com>...
> On Jun 6, 1:29 pm, "andandgui isler" <bosisler_...(a)hotmail.com> wrote:
> >  i just loaded the MCR. In my program files i see that it installed as  C:\Program Files\MATLAB\MATLAB Compiler Runtime\v711 .
> >
> > but when i write deploytool on command window then there is nothing happen. What should i do ? i want to convert my m-file to .exe file
>
> ---------------------------------------------------------------------------------------------
> Try just saying, on the command line:
> mcc -m myapp.m
> this should make an executable. You can run it form within the
> command window with an exclamation point:
> !myapp.exe
> You can use deploytool, or another installer package such as Wise or
> InstallShield, if you need to bundle a bunch of other files to
> distribute with your app, such as documentation, DLL's, sample data
> files, etc.

i type mcc -m myapp.m to command line, after a busy moments nearly 10 seconds it gices error which is written below :

>> mcc -m myapp.m
Depfun error: 'Unable to locate myapp.m as a function on the MATLAB path'
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1).

Thanks for reply
From: Li on
"andandgui isler" <bosisler_ist(a)hotmail.com> wrote in message <huh5ss$ap7$1(a)fred.mathworks.com>...
> ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <10f64f20-0bd7-4bce-92dc-1bbdcb3f7ba2(a)x27g2000yqb.googlegroups.com>...
> > On Jun 6, 1:29 pm, "andandgui isler" <bosisler_...(a)hotmail.com> wrote:
> > >  i just loaded the MCR. In my program files i see that it installed as  C:\Program Files\MATLAB\MATLAB Compiler Runtime\v711 .
> > >
> > > but when i write deploytool on command window then there is nothing happen. What should i do ? i want to convert my m-file to .exe file
> >
> > ---------------------------------------------------------------------------------------------
> > Try just saying, on the command line:
> > mcc -m myapp.m
> > this should make an executable. You can run it form within the
> > command window with an exclamation point:
> > !myapp.exe
> > You can use deploytool, or another installer package such as Wise or
> > InstallShield, if you need to bundle a bunch of other files to
> > distribute with your app, such as documentation, DLL's, sample data
> > files, etc.
>
> i type mcc -m myapp.m to command line, after a busy moments nearly 10 seconds it gices error which is written below :
>
> >> mcc -m myapp.m
> Depfun error: 'Unable to locate myapp.m as a function on the MATLAB path'
> ??? Error using ==> mcc
> Error executing mcc, return status = 1 (0x1).
>
> Thanks for reply


I think a license for Matlab Compiler Toolbox is needed.
From: ImageAnalyst on
On Jun 6, 6:02 pm, "andandgui isler" <bosisler_...(a)hotmail.com> wrote:
> ImageAnalyst <imageanal...(a)mailinator.com> wrote in message <10f64f20-0bd7-4bce-92dc-1bbdcb3f7...(a)x27g2000yqb.googlegroups.com>...
> > On Jun 6, 1:29 pm, "andandgui isler" <bosisler_...(a)hotmail.com> wrote:
> > >  i just loaded the MCR. In my program files i see that it installed as  C:\Program Files\MATLAB\MATLAB Compiler Runtime\v711 .
>
> > > but when i write deploytool on command window then there is nothing happen. What should i do ? i want to convert my m-file to .exe file
>
> > ---------------------------------------------------------------------------------------------
> > Try just saying, on the command line:
> > mcc -m myapp.m
> > this should make an executable.  You can run it form within the
> > command window with an exclamation point:
> > !myapp.exe
> > You can use deploytool, or another installer package such as Wise or
> > InstallShield, if you need to bundle a bunch of other files to
> > distribute with your app, such as documentation, DLL's, sample data
> > files, etc.
>
> i type mcc -m myapp.m to command line, after a busy moments nearly 10 seconds it gices error which is written below :
>
> >> mcc -m myapp.m
>
> Depfun error: 'Unable to locate myapp.m as a function on the MATLAB path'
> ??? Error using ==> mcc
> Error executing mcc, return status = 1 (0x1).
>
> Thanks for reply

---------------------------------------------------------------------------------------
Apparently it's not as obvious as I thought that you replace myapp.m
with the actual name of your application. So let me be much more
explicit.

Let's say that you have an m-file called isler_application.m that
you'd like to compile into an executable called
isler_application.exe. OK now, see the line where I said mcc-m
myapp.m? Well just replace myapp.m with isler_application.m and you
get this:
mcc -m isler_application.m
Do that on the command line and hit the enter key. Then, assuming you
have bought the compiler (which I assume you have because you seem to
know about deploytool, ar at least its existence), it will do the
compilation. After that you will have a file called
isler_application.exe along with a bunch of other files that you don't
need. Then you need to distribute isler_application.exe, the MCR
installer, and any other files needed at runtime (such as sample data
files, documentation, etc.) to your end user. They will need to
install the MCR and run the installer for your app.

Does this explain it sufficiently?
If your end user can't run your app (unfortunately this is not an
unlikely scenario), then come back and give the error messages.
-ImageAnalyst