Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Mex Code returns error #21

Closed
alex-yin opened this issue Apr 11, 2018 · 3 comments
Closed

Compile Mex Code returns error #21

alex-yin opened this issue Apr 11, 2018 · 3 comments

Comments

@alex-yin
Copy link

alex-yin commented Apr 11, 2018

I've installed the toolbox and trying to compile the mex file. But I keep getting this error with or without [OMPPARAMS]. I'm using Linux and 6.3 version of gcc.


private/edgesDetectMex.cpp:103:71: error: cannot convert ‘const int*’ to ‘const mwSize* {aka const long unsigned int*}’ for argument ‘2’ to ‘mxArray* mxCreateNumericArray_730(mwSize, const mwSize*, mxClassID, mxComplexity)’
   if(nl>2) pl[2] = mxCreateNumericArray(5,segDims,mxUINT8_CLASS,mxREAL);

Any idea what the issue is?

@samarmahmou
Copy link

The problem related to the new version of matlab change the code line 438 from const int ds[3] = {h,w,3}; to const mwSize ds[3] = {h,w,3};
It worked correctly With me in edgeBoxesMex.

@alex-yin
Copy link
Author

Thanks!

@khizar-anjum
Copy link

You can just refer to my PR #35. Download my fork of this and you should be good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants