How do I link a 64-bit MATLAB mex file to OpenCV libraries -


normally in matlab can compile mex file uses opencv functions using:

mex -o "mxfunc.cpp" -i"c:\opencv2.1\include/opencv" -l"c:\opencv2.1\lib" -lcv210 -lcvaux210 -lcxcore210 -lhighgui210 

however, having switched 64-bit version of matlab, unresolved symbols, e.g.

mxfunc.obj : error lnk2019: unresolved external symbol cvreleaseimage referenced in function mexfunction 

how can fix this?

system: windows 7 64-bit; msvc 2005; matlab r2010b 64-bit; opencv 2.1.0.

generally: need recompile used libraries in 64-bit.

as far know, it's not enough. if use stl (and opencv uses lot) need use same crt version matlab uses. need use same version of msvc mathworks guys...

you can check dependency of libmex.dll figure out crt needed. after need install proper visual c++ (normally free version enough).


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -