フィルターのクリア

How can I compile standalon app with x64 MATLAB and Compiler for x86 cpu?

1 回表示 (過去 30 日間)
Bíró
Bíró 2012 年 9 月 27 日
I would like to compile a standalopne application. I have x64 MATLAB and Compiler but I'll use the standalone on a x86 PC. Is there any option to define the target cpu?

回答 (2 件)

Aurelien Queffurust
Aurelien Queffurust 2012 年 9 月 27 日
From the mcc documentation :
-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).
  2 件のコメント
Bíró
Bíró 2012 年 9 月 27 日
Is that mean I have to install a 32-bit MATLAB as well? Because I have tried it but it said "Unable to find suitable install area".
Aurelien Queffurust
Aurelien Queffurust 2012 年 9 月 27 日
Yes you also need to install 32-bit MATLAB.

サインインしてコメントする。


Image Analyst
Image Analyst 2012 年 9 月 27 日
You can install both 32 bit MATLAB and 64 bit MATLAB on your computer. Use the 32 bit MATLAB to compile an app for a 32 bit operating system, and use the 64 bit MATLAB to compile an app for a 64 bit operating system.
  2 件のコメント
Bíró
Bíró 2012 年 9 月 27 日
But if I want to deploy a universal standalon app what can run on x86 and x64 too, is that enough to deploy it with 32-bit MATLAB? So can a 32bit standalone run on a x64 PC?
Image Analyst
Image Analyst 2012 年 9 月 27 日
Yes it can - a 32 bit app can run on a 64 bit computer. Those are all the programs you see in the Program Files (x86) folder. But of course the converse is not true. A 64 bit app can't run on a 32 bit computer.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by