pap-x
pap-x

Reputation: 594

Can't use OpenCV 2.4.9 C++ API in Codeblocks

I have installed OpenCV 2.4.9 in Windows and I used the .lib and .dll files I found in the folder vc10 in Codeblocks. Although I had no problem using the old OpenCV C API, when I do something simple with the new API like:

Mat image;

I get an error that the functions called inside the Mat constructor can't be found. What may be causing this? I have included all libraries and all directories.

Upvotes: 0

Views: 417

Answers (1)

GPPK
GPPK

Reputation: 6666

The answer to this question (Not an Answer):

no, dear, you can't use the vc10 libs with mingw. you will have to build the opencv libs for mingw first, using cmake. – berak

Follow up advice

Compile the MinGW libraries following this guide

Upvotes: 2

Related Questions