VB.net Compiler Error - Dependency Requirements

조회 수: 1 (최근 30일)
Mitchell Morrow
Mitchell Morrow 2015년 12월 1일
댓글: Mitchell Morrow 2015년 12월 7일
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