Create standalone exe file in linux centos system

Hi all,
I am trying to build an executable file in linux centos system and execute it on Win7. Because my PC running win7 does not has MATLAB license, while the other one with linux has.
I follow the tutorial here, and use "deploytool" to generate the files.
However, the generated files are not like what showed in the tutorial. The main file is not a executable file.
For example, if I use "test.m" as my main file, the resulting output file is "MyAppinstaller_web.install" but not "MyAppinstaller_web.exe" in the vedio.
Besides, the main files in the directories "for_testing" and "for_redistribution_files_only" do not have any file extension(I think it should be "test.exe", but it is "test" only) and are not executable.
Could anyone please tell what's wrong with my procedure? thanks a lot.
BTW, the MATLAB version I use is 2015a.

3 件のコメント

Alexandra Harkai
Alexandra Harkai 2016 年 11 月 21 日
This tutorial doesn't specify the .exe extension. 'MyAppInstaller_web.install' however will likely be executable anyway. Have you tried executing it? It may be the case that there's nothing wrong with your procedure.
YCY
YCY 2016 年 11 月 21 日
Yes, it is executable. But there is an error message "Failed to download the MCR Installer" ...
deep
deep 2018 年 11 月 22 日
hi,
I am facing the same problem.
How to execute the .install file?

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

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 11 月 21 日

1 投票

You cannot build on Linux for execution on MS Windows.

3 件のコメント

Alexandra Harkai
Alexandra Harkai 2016 年 11 月 21 日
I totally missed that part. :(
YCY
YCY 2016 年 11 月 21 日
Really? So I can only run my code on Linux ?
Walter Roberson
Walter Roberson 2016 年 11 月 21 日
Wine or dual boot or the equivalent. You can install MATLAB for Windows on the same machine under Windows boot or Windows emulation, as long as the MAC address is the same. That would allow you to generate the executable for use with the other machine.

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

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

YCY
2016 年 11 月 21 日

コメント済み:

2018 年 11 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by