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:
How to create a windows standalone executable from a unix station

Subject: How to create a windows standalone executable from a unix station

From: Dimitri FABRE

Date: 10 Aug, 2010 08:05:05

Message: 1 of 2

Helllo,

I am using Matlab7.4.0 with compiler toolbox v7.6., and i want to create a stand alone application for Windows PC.
I have already get a standalone application for UNIX, installling MCR on UNIX environment and using mcc command without problem. But i am encoutering problems with Windows.
Actually, when I am using deploytool, the GUI do not let me choose, windows standalone application (as i see in lots of tutorials), but only the three items:
- Standalone application
- C shared library
- C++ shared library
And consequently, if i use "-Standalone Application" , the file generated is "my_program" and not "my_program.exe", whereas i do need this .exe for windows.

How to proceed in order to get it?

Thanks in advance

Subject: How to create a windows standalone executable from a unix station

From: Aurelien Queffurust

Date: 29 Nov, 2010 13:31:05

Message: 2 of 2

"Dimitri FABRE" <dimitri.fabre@gmail.com> wrote in message <i3r17g$d6n$1@fred.mathworks.com>...
> Helllo,
>
> I am using Matlab7.4.0 with compiler toolbox v7.6., and i want to create a stand alone application for Windows PC.
> I have already get a standalone application for UNIX, installling MCR on UNIX environment and using mcc command without problem. But i am encoutering problems with Windows.
> Actually, when I am using deploytool, the GUI do not let me choose, windows standalone application (as i see in lots of tutorials), but only the three items:
> - Standalone application
> - C shared library
> - C++ shared library
> And consequently, if i use "-Standalone Application" , the file generated is "my_program" and not "my_program.exe", whereas i do need this .exe for windows.
>
> How to proceed in order to get it?
>
> Thanks in advance

You need to compile your application under Windows which means for you to have MATLAB Compiler installed on a Windows machine.
It is explained in the doc , within the section “Porting Generated Code to a Different Platform”:
http://www.mathworks.com/help/toolbox/compiler/br2jauc-13.html
You can read:
Since binary formats are different on each platform, the components generated by MATLAB Compiler cannot be moved from platform to platform as is.

Aurélien

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

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