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 executables and operating systems

Subject: Matlab compiler executables and operating systems

From: Bilal

Date: 16 Nov, 2010 20:22:04

Message: 1 of 6

Hi,

I was wondering if the stand-alone executables created by the Matlab Compiler have any problems running on any other operating system other than windows? If i want to run an executable i currently use on Windows, will it work the same way if i was to run it on UNIX?

Subject: Matlab compiler executables and operating systems

From: Walter Roberson

Date: 16 Nov, 2010 20:27:52

Message: 2 of 6

On 10-11-16 02:22 PM, Bilal wrote:

> I was wondering if the stand-alone executables created by the Matlab
> Compiler have any problems running on any other operating system other
> than windows? If i want to run an executable i currently use on Windows,
> will it work the same way if i was to run it on UNIX?

You effectively have to "cross-compile" for the other platforms. The
executable will be platform specific.

Subject: Matlab compiler executables and operating systems

From: Bilal

Date: 17 Nov, 2010 13:11:03

Message: 3 of 6

Walter Roberson <roberson@hushmail.com> wrote in message <ibupg9$31g$4@canopus.cc.umanitoba.ca>...
> On 10-11-16 02:22 PM, Bilal wrote:
>
> > I was wondering if the stand-alone executables created by the Matlab
> > Compiler have any problems running on any other operating system other
> > than windows? If i want to run an executable i currently use on Windows,
> > will it work the same way if i was to run it on UNIX?
>
> You effectively have to "cross-compile" for the other platforms. The
> executable will be platform specific.

How can i accomplish this "cross-compile"?

Subject: Matlab compiler executables and operating systems

From: Aurelien Queffurust

Date: 17 Nov, 2010 13:38:03

Message: 4 of 6

"Bilal " <bilalhaider87@gmail.com> wrote in message <ic0k97$r3o$1@fred.mathworks.com>...
> Walter Roberson <roberson@hushmail.com> wrote in message <ibupg9$31g$4@canopus.cc.umanitoba.ca>...
> > On 10-11-16 02:22 PM, Bilal wrote:
> >
> > > I was wondering if the stand-alone executables created by the Matlab
> > > Compiler have any problems running on any other operating system other
> > > than windows? If i want to run an executable i currently use on Windows,
> > > will it work the same way if i was to run it on UNIX?
> >
> > You effectively have to "cross-compile" for the other platforms. The
> > executable will be platform specific.
>
> How can i accomplish this "cross-compile"?


Concerning compilation and licensing :
****************************************

First you need to have a MATLAB Compiler license for ALL platforms.
Sometimes you have a license just for a specific OS , in this case you can ask TMW to convert your license for ALL platforms. There is no extra , it is free.
Then you need to invoke mcc or deploytool on each different Operating System.
It will allow to create binary / executable/standalone for the specific OS.


Concerning cross-platform compatibility :
****************************************
If your MATLAB code effectively uses filesep for example , it will work.
Good practices for ML Compiler are described by Peter Webb in the Loren's blog;
http://blogs.mathworks.com/loren/2008/08/11/path-management-in-deployed-applications/

Aurélien,

http://blog.developpez.com/matlab4geek/

Subject: Matlab compiler executables and operating systems

From: Bilal

Date: 22 Nov, 2010 15:22:04

Message: 5 of 6

"Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <ic0lrr$8dv$1@fred.mathworks.com>...
> "Bilal " <bilalhaider87@gmail.com> wrote in message <ic0k97$r3o$1@fred.mathworks.com>...
> > Walter Roberson <roberson@hushmail.com> wrote in message <ibupg9$31g$4@canopus.cc.umanitoba.ca>...
> > > On 10-11-16 02:22 PM, Bilal wrote:
> > >
> > > > I was wondering if the stand-alone executables created by the Matlab
> > > > Compiler have any problems running on any other operating system other
> > > > than windows? If i want to run an executable i currently use on Windows,
> > > > will it work the same way if i was to run it on UNIX?
> > >
> > > You effectively have to "cross-compile" for the other platforms. The
> > > executable will be platform specific.
> >
> > How can i accomplish this "cross-compile"?
>
>
> Concerning compilation and licensing :
> ****************************************
>
> First you need to have a MATLAB Compiler license for ALL platforms.
> Sometimes you have a license just for a specific OS , in this case you can ask TMW to convert your license for ALL platforms. There is no extra , it is free.
> Then you need to invoke mcc or deploytool on each different Operating System.
> It will allow to create binary / executable/standalone for the specific OS.
>
>
> Concerning cross-platform compatibility :
> ****************************************
> If your MATLAB code effectively uses filesep for example , it will work.
> Good practices for ML Compiler are described by Peter Webb in the Loren's blog;
> http://blogs.mathworks.com/loren/2008/08/11/path-management-in-deployed-applications/
>
> Aurélien,
>
> http://blog.developpez.com/matlab4geek/

So all i have to do is to compile the program again using the other OS? so basically, i install Matlab on the other OS that i want to use, and deploy the compiler tool and follow the same steps i use to creat the executable for Windows?

Subject: Matlab compiler executables and operating systems

From: Aurelien Queffurust

Date: 22 Nov, 2010 15:58:03

Message: 6 of 6

"Bilal " <bilalhaider87@gmail.com> wrote in message <ice1qs$7g4$1@fred.mathworks.com>...
> "Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <ic0lrr$8dv$1@fred.mathworks.com>...
> > "Bilal " <bilalhaider87@gmail.com> wrote in message <ic0k97$r3o$1@fred.mathworks.com>...
> > > Walter Roberson <roberson@hushmail.com> wrote in message <ibupg9$31g$4@canopus.cc.umanitoba.ca>...
> > > > On 10-11-16 02:22 PM, Bilal wrote:
> > > >
> > > > > I was wondering if the stand-alone executables created by the Matlab
> > > > > Compiler have any problems running on any other operating system other
> > > > > than windows? If i want to run an executable i currently use on Windows,
> > > > > will it work the same way if i was to run it on UNIX?
> > > >
> > > > You effectively have to "cross-compile" for the other platforms. The
> > > > executable will be platform specific.
> > >
> > > How can i accomplish this "cross-compile"?
> >
> >
> > Concerning compilation and licensing :
> > ****************************************
> >
> > First you need to have a MATLAB Compiler license for ALL platforms.
> > Sometimes you have a license just for a specific OS , in this case you can ask TMW to convert your license for ALL platforms. There is no extra , it is free.
> > Then you need to invoke mcc or deploytool on each different Operating System.
> > It will allow to create binary / executable/standalone for the specific OS.
> >
> >
> > Concerning cross-platform compatibility :
> > ****************************************
> > If your MATLAB code effectively uses filesep for example , it will work.
> > Good practices for ML Compiler are described by Peter Webb in the Loren's blog;
> > http://blogs.mathworks.com/loren/2008/08/11/path-management-in-deployed-applications/
> >
> > Aurélien,
> >
> > http://blog.developpez.com/matlab4geek/
>
> So all i have to do is to compile the program again using the other OS? so basically, i install Matlab on the other OS that i want to use, and deploy the compiler tool and follow the same steps i use to creat the executable for Windows?

Yes exactly.
It is documented in the section "Porting Generated Code to a Different Platform":
http://www.mathworks.com/help/toolbox/compiler/br2jauc-13.html

Aurélien

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