Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

mexopencv building error #442

Open
surendra1234sharma opened this issue Feb 23, 2019 · 4 comments
Open

mexopencv building error #442

surendra1234sharma opened this issue Feb 23, 2019 · 4 comments

Comments

@surendra1234sharma
Copy link

Hello,
I am using Matlab2018a, builded opencv and opencv-contrib successfully using visual studio 2017.
when I am building mex files using mexopencv.make i am getting following error

Error using mex
Unknown MEX argument '-R2017b-largeArrayDims'.

Error in mexopencv.make (line 97)
if ~opts.dryrun, eval(cmd); end

Please look into this

@surendra1234sharma
Copy link
Author

I am using opencv-3.4.1, opencv-contrib-3.4.1, mexopencv-3.4.1
visual studio 2017 64bit
Matlab2018a 64 bit
windows 10

@NicksonYap
Copy link

I'm getting the same error,

opencv-3.4.1, opencv-contrib-3.4.1, mexopencv-3.4.1
VS2017 64bit
R2018b 64 bit
Windows 10 PRO

@NicksonYap
Copy link

Fix:

mex_flags = ['-R2017b' mex_flags];

In line 280 of make.m:

Change

mex_flags = ['-R2017b' mex_flags];

to

mex_flags = [mex_flags];

@surendra1234sharma
Copy link
Author

Thanks @NicksonYap

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

No branches or pull requests

2 participants