Re: run compiled exe file on another machine



On Oct 30, 11:01 am, Randy Poe <poespam-t...@xxxxxxxxx> wrote:
On Oct 29, 3:31 pm, Joey <joey2...@xxxxxxxxx> 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® Compiler to convert MATLAB® 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

.



Relevant Pages

  • Re: newbie question: creating my first mex-file - compiling on windows xp
    ... > Which compiler should I download in order to get started? ... For mex, LCC that comes wirth matlab suffices for getting started. ... Install the MS Visual studio first, and see if there are more options ...
    (comp.soft-sys.matlab)
  • Re: run compiled exe file on another machine
    ... and tried to installed it on a computer without matlab. ... that .NET framework is not installed, ... I install .NET framework? ... end users of your components which version of the MCR is required. ...
    (comp.soft-sys.matlab)
  • Re: Problem compiling in MATLAB
    ... Joel wrote: ... this required me to install a compatible C++ compiler on my ... When I try to compile the matlab file using comtool, ...
    (comp.soft-sys.matlab)
  • Locating Compilers in Matlab
    ... I'm trying to install Mathematica Symbolic Toolbox for MATLAB on ... Microsoft Visual C++ Toolkit 2003. ... The readme file says that Matlab 7.1, ... When I try to select a compiler through ...
    (comp.soft-sys.matlab)
  • Re: Unknown Simulink error --> Unable to locate mexopts.bat
    ... On 2/23/2011 12:34 PM, Gadi Reinhorn wrote: ... I understand that you are using MATLAB R2010a. ... We have found that the install of VS2010 Express is very error prone. ... compiler to use for simulation builds. ...
    (comp.soft-sys.matlab)