Ask Your Question
0

compiling openCV cpp files in matlab with mex

asked 2012-11-12 11:17:45 -0600

alirezad gravatar image

dear all i want to to compile a cpp file which uses OpenCV library with mex (in matlab) and with gcc compiler. i'm a windows user and already installed minGW in my windows 7 system. the command in linux was :

mex -O FaceDetect.cpp -I/usr/local/include/opencv -L/usr/local/lib -lcxcore -lcv -lcvaux

what is the equivalent command in windows ? thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2012-11-13 05:59:30 -0600

wl2776 gravatar image

updated 2012-11-14 04:23:34 -0600

First you have to set up mex with mex -setup It should detect installed C++ compilers and create its internal .bat file calling one of them.

Then the command is basically the same, the paths should be changed to real paths.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-12 11:17:45 -0600

Seen: 2,533 times

Last updated: Nov 14 '12