VB.net Compiler Error - Dependency Requirements
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mitchell Morrow
le 1 Déc 2015
Commenté : Mitchell Morrow
le 7 Déc 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 commentaires
Réponse acceptée
Yuebin Zhou
le 7 Déc 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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Standalone Applications dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!