32 bit exe compilation using matlab 64 installed

I have Matalb R2014B and have developed a GUI based application, while compiling the exe using deploytool & application Compiler (to compile 32 bit executable), help me to locate the settings for selecting 32 bit as o/p executable.
Regards, Pratap

답변 (1개)

Thomas Koelen
Thomas Koelen 2015년 5월 18일
편집: Thomas Koelen 2015년 5월 18일

0 개 추천

As of R2010b, it is possible to compile 32-bit Windows applications using MATLAB on a 64-bit machine. See the -win32 option on the mcc documentation page . Note that you also need to install 32-bit MATLAB.
Even if you are using an older version, you could try getting 32-bit version of MATLAB on your 64-bit machine and compile using that. Although this was not officially supported, several users have been able to have this working in the past.

댓글 수: 3

Thomas is right. Use the -win32 option to build a 32-bit application on a 64-bit system but the following should be true:
  • You use the same MATLAB installation root (matlabroot) for both 32-bit and 64-bit versions of MATLAB.
This may be confusing and not easy. Alternatively, install a 32-bit MATLAB anywhere on your 64-bit Windows (this is supported beginning R2010b) and use that for compiling a 32-bit application and forget about the -win32 flag.
Is this no longer an option?
The mcc documentation page no longer contains anything about -win32 and when I run mcc I get the error: "-win32" is invalid when executed from within MATLAB on "win64"
I am running MATLAB 2016a
R2015b was the last version that supported 32 bit compilation.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2015년 5월 18일

댓글:

2017년 7월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by