04-0007 MATLAB GUI 打包 EXE


1. Warning

Waring:Excluded"C:/ProgramFiles/MATLAB/R2017a/toolbox/fixedpoint/fixedpoint/+embedded/+ntxui/@NTX/NTX.m",reason: The file or function has been excluded from packaging for the "MCR"target environment according to the “Compiler” license. Either remove the fileor function from your code, or use the MATLAB function “isdeployed” to ensurethe function is not invoked in the deployed component.
在這裏插入圖片描述

備註:這是因爲toolbox/local文件夾下面的startup.m文件導致的
Compiler in 2017a fails to package scripts that compiled well in 2016b
[填坑]VS2017與MATLAB2016b混合編程(生成dll方式)
Got error in compiling standalone app 2018a
Why does mcc generates Warning message about starup file even though the starup file is not present on MATLAB Search Path?


2. 警告: 在 matlabrc 中執行啓動失敗

這表明您的 MATLAB 設置中可能存在嚴重問題,應儘快解決。檢測到的錯誤爲:MATLAB:err_parse_cannot_access_previously_accessible_file現在無法訪問以前可訪問的文件 “D:\MATLAB\toolbox\local\startup.m”。

備註:以前有startup.m文件,因爲某些原因,必須要刪掉它,導致現在該文件不存在,重置所有環境變量。


3. Unable to complete successfully.

未找到支持的編譯器。您可以安裝免費提供的 MinGW-w64 C/C++ 編譯器;請參閱安裝MinGW-w64 編譯器。有關更多選項,請訪問
https://www.mathworks.com/support/compilers。Unexpected error while determining required deployable files.Compilation terminated. Details:
備註:已經安裝了MinGW-w64編譯器,但是輸入mbuild -setup的時候依舊會出現問題,這是因爲沒有配置環境變量。

setenv('MW_MINGW64_LOC','D:\app\GCC')

4. 錯誤使用 matlab.depfun.internal.cacheMtree (line 21)文件、函數或類

錯誤使用 matlab.depfun.internal.cacheMtree (line 21)文件、函數或類"D:\MATLAB\toolbox\local\startup.m" 可能不存在。WHICH 和EXIST 都找不到大小寫完全匹配的項。請檢查名稱的拼寫,以及任何需要的目錄是否位於MATLAB 路徑中。
備註:重置環境變量


5. Matlab 配置vlfeat

04-0004 matlab安裝vl_feat庫


6. Matlab GUI 打包方法

第一種:指令
第二種:deploytool
Link:將MATLAB程序封裝成exe的方法
Link:MATLAB生成exe脫離matlab運行可執行程序


備註:最終畢設結束,也沒能將matlab代碼編譯成C或者是C++的碼,具體打包的相關指令如上。畢設已經結束,現在將期間的部分筆記整理出來。
不準備考研了,專心工作,不知道今後還會不會碰matlab,笑了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章