Hello. I try to compile a mex file. I see error message like below.
"Invalid MEX File 'C:\...\myMEX.mexw64'".
Only this, no other message like " The specified module could not be found" or "myMEX.mexw64 is not a valid Win32 application" appears.
I can't find reason this issue happens.
My Matlab version is R2014a 64bit. And I run Matlab on Win 7 64bit. I use Visual Studio 2012.
Thank you.

댓글 수: 6

James Tursa
James Tursa 2015년 4월 8일
Does the compile seem to work OK, and you just get errors when trying to run it?
Wangjin Jin
Wangjin Jin 2015년 4월 8일
Dear James Tursa.
Thank you for your comment.
I've compiled MEX file successfully. And get error when trying to run it.
Can you compile and run a very basic function? E.g.,
#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {}
Wangjin Jin
Wangjin Jin 2015년 4월 8일
Yes.
James Tursa
James Tursa 2015년 4월 8일
Then start building from that. Start moving code from myMex.c into this simple function and see if you can still compile and run.
Wangjin Jin
Wangjin Jin 2015년 4월 8일
Thank you.

댓글을 달려면 로그인하십시오.

답변 (1개)

ALI AHMED EL-MAHMUDI
ALI AHMED EL-MAHMUDI 2017년 12월 10일

0 개 추천

Hi I have use facial landmarks "find_face_landmarks", but during compile I got this massage: Invalid MEX-file '\Documents\MATLAB\find_face_landmarks-1.2-x64-vc14-release\interfaces\matlab\find_face_landmarks.mexw64': The specified module could not be found.

댓글 수: 1

Jan
Jan 2017년 12월 10일
편집: Jan 2017년 12월 10일
@Ali: Please post a new question in a new thread and not in the section of answers of another question. "Thread-hijacking" is confusing, because it is not clear afterwards, to which question the answers belong. After opening your own thread, delete this message. Thanks.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

질문:

2015년 4월 8일

편집:

Jan
2017년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by