我有一个我想编译的matlab指南程序(包)。 该程序未使用曲线拟合工具箱。
然而,编译器抱怨许可证丢失。
mcc -C -o ...
Compiler version: 5.0 (R2013b)
Dependency analysis by DEPFUN.
Processing C:\Program Files\MATLAB\R2013b\toolbox\matlab\win64\mcc.enc
Processing C:\Program Files\MATLAB\R2013b\toolbox\curvefit\win64\mcc.enc
Depfun error: 'License checkout failed.
License Manager Error -4
Maximum number of users for Curve_Fitting_Toolbox reached.
如何删除编译的依赖性?
答案 0 :(得分:1)
根据mcc
document,
-N Clear Path
Passing -N effectively clears the path of all folders except the following core folders
(this list is subject to change over time):
matlabroot\toolbox\matlab
matlabroot\toolbox\local
matlabroot\toolbox\compiler\deploy
It also retains all subfolders of the above list that appear on the MATLAB path at compile time.
Including -N on the command line lets you replace folders from the original path,
while retaining the relative ordering of the included folders.
All subfolders of the included folders that appear on the original path are also included.
In addition, the -N option retains all folders that you included on the path that are not under matlabroot\toolbox.
换句话说,您可以清除路径中的所有文件夹,只保留核心MATLAB文件夹。
如果要包含一些工具箱文件夹,可以使用-a
选项:
mcc ... -a C:\Program Files\MATLAB\R2013b\toolbox\...\...