Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
MEX problem

Subject: MEX problem

From: chairat Kraichan

Date: 1 Apr, 2013 21:41:13

Message: 1 of 4

I got some MEX problem how can I solve this Best thank:)

 mex FaceDetect.cpp -I../Include/ ../lib/*.lib -outdir ../bin/
   Creating library C:\USERS\ADMINI~1.KKD\APPDATA\LOCAL\TEMP\MEX_BW~1\templib.x and object C:\USERS\ADMINI~1.KKD\APPDATA\LOCAL\TEMP\MEX_BW~1\templib.exp
FaceDetect.obj : error LNK2019: unresolved external symbol cvGetSeqElem referenced in function mexFunction
FaceDetect.obj : error LNK2019: unresolved external symbol cvHaarDetectObjects referenced in function mexFunction
FaceDetect.obj : error LNK2019: unresolved external symbol cvClearMemStorage referenced in function mexFunction
FaceDetect.obj : error LNK2019: unresolved external symbol cvCreateMemStorage referenced in function mexFunction
FaceDetect.obj : error LNK2019: unresolved external symbol cvEqualizeHist referenced in function mexFunction
FaceDetect.obj : error LNK2019: unresolved external symbol cvReleaseImage referenced in function mexFunction
FaceDetect.obj : error LNK2019: unresolved external symbol cvErode referenced in function mexFunction
FaceDetect.obj : error LNK2019: unresolved external symbol cvCreateStructuringElementEx referenced in function mexFunction
FaceDetect.obj : error LNK2019: unresolved external symbol cvCreateImage referenced in function mexFunction
FaceDetect.obj : error LNK2019: unresolved external symbol cvLoad referenced in function mexFunction
../BIN/\FaceDetect.mexw64 : fatal error LNK1120: 10 unresolved externals
 
  E:\MATLAB\BIN\MEX.PL: Error: Link of '..\BIN\FaceDetect.mexw64' failed.
 
??? Error using ==> mex at 221
Unable to complete successfully.


I got some MEX problem how can I solve this Best thank:)

Subject: MEX problem

From: exosceleton

Date: 25 Apr, 2013 07:57:09

Message: 2 of 4

Hello,
i have the same problem.
Did you ever figure it out?
Please let me know.
Thanks

Subject: MEX problem

From: chairat Kraichan

Date: 25 Apr, 2013 08:16:08

Message: 3 of 4

"exosceleton" <exosceleton@hotmail.com> wrote in message <klankk$6q0$1@newscl01ah.mathworks.com>...
> Hello,
> i have the same problem.
> Did you ever figure it out?
> Please let me know.
> Thanks

Still Stuck with the same problem. (I install win32 bit and 64, install matlab 32 and 64 bit still not work properly )

So I decide to change compiler. Because I still not can't solve this for 2 months.
Now I have already change into OPENCV with visual studio and compile it and it's work.
Many of library in opencv I can change it too.

If you can solve this problem please tell me.
Best Thanks.
Chairat Kraichan

Subject: MEX problem

From: chairat Kraichan

Date: 25 Apr, 2013 08:21:08

Message: 4 of 4

"exosceleton" <exosceleton@hotmail.com> wrote in message <klankk$6q0$1@newscl01ah.mathworks.com>...
> Hello,
> i have the same problem.
> Did you ever figure it out?
> Please let me know.
> Thanks

You have to change to 32 bit window and matlab 32 bit if you using mex file 32 bit .
You have to change to 64 bit window and matlab 64 bit if you using mex file 64 bit .

For now I change compiler into OPENCV because of my thesis need real time and implementation.

Best thank
Chairat

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us