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,笑了。

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