How do you produce win32 exes with deploytool in 64-Bit Matlab

4 views (last 30 days)
MATLAB Version: 8.1.0.604 (R2013a)
I am using the Matlab compiler on a 64-bit and I need to be able to produce x32 compatible versions of the executables for people on older windows machines. How do I do this? I see several confusing suggestions about using -win32 flags, having to have both 64-bit and 32-bit versions of Matlab installed, etc. I assume there is an easier way of doing this?

Accepted Answer

Andreas Goser
Andreas Goser on 17 Jan 2014
From
doc mcc
-win32 Run in 32-Bit Mode
Use this option to build a 32-bit application on a 64-bit system only when the following are both true:
  • You use the same MATLAB installation root (matlabroot) for both 32-bit and 64-bit versions of MATLAB.
  • You are running from a Windows command line (not a MATLAB command line).
What do you think is confusing or can be easier?
In general you can install the environment where you want to have an executable for and create it there. That is safe, but yes this is not so easy.
  3 Comments
Friedrich
Friedrich on 17 Jan 2014
1.) You would need to install the 32bit MATLAB in addition by your own, 2.) If you read the above post carfully you would have read "You are running from a Windows command line (not a MATLAB command line)." So you cannot use this -win32 from inside MATLAB.
Overall the easiest is to install a 32bit MATLAB and use that for compiling a 32bit application and completly forget about that win32 flag.
Andreas Goser
Andreas Goser on 17 Jan 2014
Martin, I see you have contacted Technical Support today with a subset of your questions, receiving the same answers. I suggest that you continue working with Technical Support. Probably having a phone call is helpful, as it is important to understand the larger picture.

Sign in to comment.

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!