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

Setting up mexopencv for matlab 2018b #452

Open
ggo6609 opened this issue Jul 11, 2019 · 2 comments
Open

Setting up mexopencv for matlab 2018b #452

ggo6609 opened this issue Jul 11, 2019 · 2 comments

Comments

@ggo6609
Copy link

ggo6609 commented Jul 11, 2019

Hi, I followed your instruction at this [(https://github.com/kyamagu/mexopencv/wiki/Installation-(Windows,-MATLAB,-OpenCV-3))]
My OS is windows 10 64 bits X64 processor, while the cmake version is 3.13.0 and Visual studio version is 14 2015. In attempt to configure using x64 option, it returns error and when I used the default Win 32, it configured. Having done the configuration and the generation, I opened the C:\dev\build\OpenCV.sln file and the from the release option. I could only select Win 32 and not x64 as you shown in the link. I tried to follow other steps in MATLAB command line and what the following error was the outcome on implementing themexopencv.make('opencv_path','C:\dev\build\install', 'opencv_contrib',true)

Error using mexopencv.make>pkg_config (line 333)
OpenCV library path not found: C:\dev\build\install\x64\vc15\lib

Error in mexopencv.make>mex_options (line 265)
[cv_cflags, cv_libs] = pkg_config(opts);

Error in mexopencv.make (line 82)
mex_flags = mex_options(opts);

I want to believe that my inability to resolve the x64 and win32 options is reponsible. How can I resolve this problem? Many thanks in anticipation of your help.

@WWBlueFire
Copy link

I encounter the same issue, Have the problem solved? Thanks a lot in advance.

@xdtl
Copy link

xdtl commented Jul 9, 2020

When you run CMake, there is an option to choose x64 or win32. The default setting is win32. Please make sure to set it to x64 (before you click "configure" or "generate"). Hope it helps.

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

3 participants