Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to compile mex file

I am using cpp files in matlab to get images from Kinect. It gives the following error:

Error using mex (line 206)
Unable to complete successfully.

Error in compile_cpp_files (line 47)
mex('-v',['-L' MicrosoftSDKPathLib],'-lMSRKinectNUI',['-I'
MicrosoftSDKPathInclude],Filename);

I don't know about this error and please let me know how to solve this error?

like image 822
user2134669 Avatar asked Dec 12 '25 16:12

user2134669


1 Answers

First, you need to configure your mex compiler using

>> mex -setup

Matlab will scan your PC to find installed compiler and suggest you which one to use.
I strongly recommend you use visual studio compiler (the latest you got).

Then try and re-run the compile_cpp_files script.

like image 125
Shai Avatar answered Dec 15 '25 08:12

Shai