Filter löschen
Filter löschen

Application Compiler crashes when selecting main file on Windows 10 R2017a

5 Ansichten (letzte 30 Tage)
Hi,
I'm trying to compile my AppDesigner (.mlapp) into a stand alone program using applicationCompiler.
When opening applicationControler, everything looks fine. Then I go to "Add main file" and press the + button. I select my .mlapp file (I can also select any m file with the same result). MATLAB Compiler window (and main MATLAB) will hang, and be unresponsive to all inputs/commands. The only way is to force quit (Through Task Manager - End Task) and restart MATLAB. I'm not getting any error messages or other signs, so I have no idea what is wrong.
Some more information: I've successfully been able to compile and distribute the app on Mac. Now, I am attempting to do it in Windows. I have R2017a installed on Windows 10. I have Microsoft Windows SDK for Windows 7 (7.1) installed after following some of the other StackOverflow and MATLAB forums.
  1 Kommentar
rob
rob am 18 Feb. 2018
I'm having the exact same issue. The command line approach works fairly ok but I was wondering if someone solved the issue of the deploytool.
Thank you in advance, Rob

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Harsh
Harsh am 21 Jul. 2017
One of the things you can try is to compile the application directly from the MATLAB command window rather than using the deploytool. The command would look similar to the following:
mcc -o app1 -W WinMain:app1 -T link:exe -d C:\Users\userName\Downloads\mlapp\for_testing -v C:\Users\UserName\Downloads\app1.mlapp -r 'C:\Program Files\MATLAB\R2017a\toolbox\compiler\Resources\default_icon.ico'
As a reference for the exact command, you can also take a look at the packaging log that was generated for the Mac App.
More details on the mcc options can be found here .
However, if the issue persists, please contact MathWorks Technical Support here: https://www.mathworks.com/support/contact_us/
Please be sure to provide a detailed description of the issue and attach any relevant files / code / examples required to investigate the issue.
  1 Kommentar
Michael L
Michael L am 3 Aug. 2017
Thanks! Command line worked. Not sure why the interface isn't working. This one did the trick for me!
mcc -o CompiledName -m -v AppName.mlapp

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB Compiler finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by