VB.net Compiler Error - Dependency Requirements
1 view (last 30 days)
Show older comments
Mitchell Morrow
on 1 Dec 2015
Commented: Mitchell Morrow
on 7 Dec 2015
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!
0 Comments
Accepted Answer
Yuebin Zhou
on 7 Dec 2015
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
More Answers (0)
See Also
Categories
Find more on Standalone Applications in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!