kyamagu / mexopencv

Collection and a development kit of matlab mex functions for OpenCV library
http://kyamagu.github.io/mexopencv
Other
659 stars 318 forks source link

Setting up mexopencv for matlab 2018b #452

Open ggo6609 opened 5 years ago

ggo6609 commented 5 years ago

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 commented 4 years ago

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

xdtl commented 4 years ago

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.