VB.net Compiler Error - Dependency Requirements

1 visualización (últimos 30 días)
Mitchell Morrow
Mitchell Morrow el 1 de Dic. de 2015
Comentada: Mitchell Morrow el 7 de Dic. de 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!

Respuesta aceptada

Yuebin Zhou
Yuebin Zhou el 7 de Dic. de 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
  1 comentario
Mitchell Morrow
Mitchell Morrow el 7 de Dic. de 2015
Hey!
This worked. I re-installed Matlab to a directory with write/read access and it fixed the error.
Thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Standalone Applications en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by