jrterven / Kin2

A Kinect 2 Toolbox for Matlab
38 stars 17 forks source link

Error running Demos #5

Open Revaes opened 6 years ago

Revaes commented 6 years ago

Using: Matlab 2017a Visual studio 2017 Windows 10

I have succesfully added the Kinect folder to the windows path and compiled the cpp files using the compile_cpp function.

Upon running the videoDemo I get the following error:

Warning: The following error was caught while executing 'Kin2' class destructor: Invalid MEX-file 'C:\Users...\MATLAB\Kinect\jrterven-Kin2-afeec4f\jrterven-Kin2-afeec4f\Mex\Kin2_mex.mexw64': Missing dependent shared libraries: 'Kinect20.Face.dll' required by 'C:\Users...\MATLAB\Kinect\jrterven-Kin2-afeec4f\jrterven-Kin2-afeec4f\Mex\Kin2_mex.mexw64'.

Error in Kin2/delete (line 207) Kin2_mex('delete', this.objectHandle);

Error in Kin2 (line 138) function this = Kin2(varargin)

Error in videoDemo (line 21) k2 = Kin2('color','depth','infrared');

In Kin2 (line 138) In videoDemo (line 21) Invalid MEX-file 'C:\Users...\MATLAB\Kinect\jrterven-Kin2-afeec4f\jrterven-Kin2-afeec4f\Mex\Kin2_mex.mexw64': Missing dependent shared libraries: 'Kinect20.Face.dll' required by 'C:\Users...\MATLAB\Kinect\jrterven-Kin2-afeec4f\jrterven-Kin2-afeec4f\Mex\Kin2_mex.mexw64'.

Error in Kin2 (line 202) this.objectHandle = Kin2_mex('new', flags);

Error in videoDemo (line 21) k2 = Kin2('color','depth','infrared'); `

I don't know how to resolve this problem.

DoubyDoubs commented 6 years ago

I have succesfully added the Kinect folder to the windows path and compiled the cpp files using the compile_cpp function.

Hi, I would like how did you managed to do that, I always have a mex error

Thanks

YUQINGWANG-0 commented 5 years ago

Hi, have you managed to fix that? I'm running into the same problem as you.

Thanks a lot.