Invalid MEX-file The specified module could not be found (R2010a)

2 views (last 30 days)
Hi, I am a french guy, sorry for my English ... I am on MATLAB R2010a and i want to use Openni and Nite to have a tracker for the kinect.
I follow these instruction http://www.mathworks.com/matlabcentral/fileexchange/30242-kinect-matlab but i have an error when i try to execute example.m, after 4 hour i will surrend ... I get this error :
??? Invalid MEX-file 'C:\OpenNI1\Mex\mxNiCreateContext.mexw64': Le module spécifié est introuvable. . Error in ==> Example at 9 KinectHandles=mxNiCreateContext(SAMPLE_XML_PATH);
I try to use dependswalker to see if dlls files miss, i download all of these files and the error stay here ... I use the compiler Microsoft Visual C++ 2010 Express with Windows SDK 7.1.
If you know how to fix this error, please tell me how !
Thank you,
Souil002

Answers (1)

Ken Atwell
Ken Atwell on 19 Apr 2014
You are on the right track. You download the missing dependencies -- great -- but they must also be visible to MATLAB on the path. Make sure this is the case; placing the dependencies in the same folder as the MEX-File is a reasonable approach.
If that still does not work, try running Dependency Walker from within MATLAB:
>> !C:\path\to\depends.exe
I believe this will give you insight as to how MATLAB "sees" you paths and such.
  2 Comments
Astha Ameta
Astha Ameta on 19 Jan 2017
Hi I am facing the same issue. Even after placing the dll files in the same folder as svmtrain.mexw64 folder, I get the same error. Please advise if you know how to fix it. Thanks
Walter Roberson
Walter Roberson on 19 Jan 2017
Astha Ameta, that sounds to me as if you are trying to use a different program, not related to Kinect ?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!