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 Problems in Matlab #18

Open
YizHiding opened this issue Mar 17, 2018 · 2 comments
Open

Compile Problems in Matlab #18

YizHiding opened this issue Mar 17, 2018 · 2 comments

Comments

@YizHiding
Copy link

Hi, @pdollar
I'm working with Mac OS. I'm facing some problems when compiling in "3. Installation, Step c)". I have downloaded the Matlab toolbox successfully and ran toolboxCompile. But then in step c), when I omit the parameters, it returns errors saying "no matching function for call to 'mxCreateNumericArray_730'". Could you tell me how to solve this problem? Do I need another [OMPPARAMS] for Mac OS?

Thank you very much for your time and help! :)

@BrianPugh
Copy link

I was having the same problem. The following solved it (not bothering with other parameters because I don't care about performance)

mex private/edgesDetectMex.cpp -outdir private -DmxCreateNumericArray=mxCreateNumericArray_700
mex private/edgesNmsMex.cpp -outdir private -DmxCreateNumericArray=mxCreateNumericArray_700
mex private/spDetectMex.cpp -outdir private -DmxCreateNumericArray=mxCreateNumericArray_700
mex private/edgeBoxesMex.cpp -outdir private -DmxCreateNumericArray=mxCreateNumericArray_700

Source: laurentkneip/opengv#53

Before you install, checkout this thread:
#26

@violetbrina
Copy link

violetbrina commented Mar 24, 2019

This is still a problem in MATLAB 2019a except I tried this work around and it failed:

Error using mex
/Users//Library/Application Support/MathWorks/MATLAB
Add-Ons/Collections/pdollar_edges/pdollar-edges-94260b5/private/edgesDetectMex.cpp:99:11:
error: no matching function for call to 'mxCreateNumericArray_700'
pl[0] = mxCreateNumericArray(3,outDims,mxSINGLE_CLASS,mxREAL);
^~~~~~~~~~~~~~~~~~~~
:1:30: note: expanded from here
#define mxCreateNumericArray mxCreateNumericArray_700
^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/MATLAB_R2019a.app/extern/include/matrix.h:1248:1: note: candidate
function not viable: no known conversion from 'const int [3]' to 'const mwSize *'
(aka 'const unsigned long *') for 2nd argument
mxCreateNumericArray(mwSize ndim, const mwSize *dims, mxClassID classid, mxComplexity
flag);
^
:1:30: note: expanded from here
#define mxCreateNumericArray mxCreateNumericArray_700
^
/Users//Library/Application Support/MathWorks/MATLAB
Add-Ons/Collections/pdollar_edges/pdollar-edges-94260b5/private/edgesDetectMex.cpp:101:11:
error: no matching function for call to 'mxCreateNumericArray_700'
pl[1] = mxCreateNumericArray(3,indDims,mxUINT32_CLASS,mxREAL);
^~~~~~~~~~~~~~~~~~~~
:1:30: note: expanded from here
#define mxCreateNumericArray mxCreateNumericArray_700
^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/MATLAB_R2019a.app/extern/include/matrix.h:1248:1: note: candidate
function not viable: no known conversion from 'const int [3]' to 'const mwSize *'
(aka 'const unsigned long *') for 2nd argument
mxCreateNumericArray(mwSize ndim, const mwSize *dims, mxClassID classid, mxComplexity
flag);
^
:1:30: note: expanded from here
#define mxCreateNumericArray mxCreateNumericArray_700
^
/Users//Library/Application Support/MathWorks/MATLAB
Add-Ons/Collections/pdollar_edges/pdollar-edges-94260b5/private/edgesDetectMex.cpp:103:20:
error: no matching function for call to 'mxCreateNumericArray_700'
if(nl>2) pl[2] = mxCreateNumericArray(5,segDims,mxUINT8_CLASS,mxREAL);
^~~~~~~~~~~~~~~~~~~~
:1:30: note: expanded from here
#define mxCreateNumericArray mxCreateNumericArray_700
^~~~~~~~~~~~~~~~~~~~~~~~
/Applications/MATLAB_R2019a.app/extern/include/matrix.h:1248:1: note: candidate
function not viable: no known conversion from 'const int [5]' to 'const mwSize *'
(aka 'const unsigned long *') for 2nd argument
mxCreateNumericArray(mwSize ndim, const mwSize *dims, mxClassID classid, mxComplexity
flag);
^
:1:30: note: expanded from here
#define mxCreateNumericArray mxCreateNumericArray_700
^
3 errors generated.

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