Matlab compiler error during packaging - "no error"
19 ビュー (過去 30 日間)
古いコメントを表示
Good day, fine community!
I am experiencing a problem which has me kind of puzzled. I have created a GUI that I have succesfully packaged previously. After making some minor changes in the script requested by the end user of the GUI, I now want to package the updates, and when I run the compiler and open the project and hit package, I get an error message. In the log file, the only error I get is this:
"Error: Unable to open file "AAAAAA\Project Folder\MATLAB\MyProgram\for_testing\MyProgram.exe": No error."
Due to company policies I cant show you the full path names, but there are no weird characters or anything, and like I said I have compiled the app before without error. Furthermore, if I undo the small changes I made and try to package the 'original file', I get the same error again. How do I figure this out, when all I have to work with is "Error: no error"? Clearly, something has changed from the original packaging (which is only a week ago!) and now.
Compiler version: 8.1 (R2020b)
0 件のコメント
採用された回答
Suryaansh Mata
2021 年 2 月 18 日
The error "Error: Unable to open file "AAAAAA\Project Folder\MATLAB\MyProgram\for_testing\MyProgram.exe": No error." seems to suggest that MATLAB compiler may not be able to access the file 'MyProgram.exe'. To resolve the issue, please try the following:
1. Please verify whether the file is located in a directory that requires administrative privileges and whether the user has access to the directory 'for_testing'.
2. Please check if any anti-virus software may be active. The anti-virus software may block MATLAB Compiler from accessing the file. Try temporarily disabling the software before attempting to compile the standalone again.
3. You can also try moving the file to a different directory where you know the user has access and try compiling again to see if you encounter the same issue.
If the suggestions above are not able to resolve your issue, please try re-compiling the code using a compile operation through the command prompt with the verbose flag: '-v'.
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
2 件のコメント
Nicolas Pipard
2021 年 10 月 6 日
The solution of changing where I save my project (and therefore where it produces the compiled program) worked also for me. This is definitly one of the first thing to try when you get a compiling error.
My error was happening during packaging and was of the style "matlab error during packaging mwboost::filesystem ..."
その他の回答 (1 件)
Tony L.
2022 年 1 月 23 日
I'm using Application Compiler App in 2021b and deleting everything in the Log Folder fixed this issue, for now.
2 件のコメント
Porna
2023 年 11 月 15 日
After changing the location of my main matlab file, I'm now able to create packages but when I click on a button on my Matlab interface, It makes a sound and nothing else happen.
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!