VB.net Compiler Error - Dependency Requirements

1 次查看(过去 30 天)
Good morning!
I am trying to compile a very simple Matlab function, just to test functionality using Matlab files for VB classes. It's shown below. I am using the Apps => Library Compiler function to compile the function.
function [ z ] = vbLibraryFunction( x, y ) z = x+y; end
I get the following error when trying to compile.
mcc -W 'dotnet:matlabSumTest,vbSum,0.0,private' -T link:lib -d \\path\for_testing -v class{vbSum:\\path\vbLibraryFunction.m} Compiler version: 6.0 (R2015a) Dependency analysis by REQUIREMENTS. {Error using matlab.depfun.internal.SearchPath (line 852) Database file "path\Software\Matlab\toolbox\matlab\depfun\+matlab\+depfun\+internal\requirements_win64_dfdb" does not exist. Please check that the path is specified correctly.
Error in matlab.depfun.internal.requirements (line 138) s = matlab.depfun.internal.SearchPath(target, varargin{2:end}); } Unexpected error while determining required deployable files. Compilation terminated.
I've checked the path given (path\Software\Matlab\toolbox\matlab\depfun\+matlab\+depfun\+internal\) for the requirements_win64_dfdb file, and I see it there, it's around 95 Mb.
Any help would be appreciated!

采纳的回答

Yuebin Zhou
Yuebin Zhou 2015-12-7
The error might be caused by file read/write permission issues. You can try the following workarounds.
Workaround 1:
Run MATLAB or the mcc or deploytool commands as administrator.
Workaround 2
Install MATLAB in a location where you can write to without administrator privileges.
Workaround 3
Give full read/write permissions to the the dependency analysis database files located at:
matlabroot\toolbox\matlab\depfun\+matlab\+depfun\+internal\requirements_arch_dfdb matlabroot\toolbox\matlab\depfun\+matlab\+depfun\+internal\pcm_arch_db
  1 个评论
Mitchell Morrow
Mitchell Morrow 2015-12-7
Hey!
This worked. I re-installed Matlab to a directory with write/read access and it fixed the error.
Thanks!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by