0

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.

4
  • 2
    no, dear, you can't use the vc10 libs with mingw. you will have to build the opencv libs for mingw first, using cmake. Commented Aug 28, 2014 at 10:28
  • @berak Really? I had no problem with the C API so I thought that it's ok. Now I have to create a new question asking how to build the opencv libs for mingw because I followed every guide I found online and couldn't get it done. Commented Aug 28, 2014 at 10:30
  • 2
    I Think I followed this without much hassle. Also if you do post another question, don't forget to try it out first and post your actual error msg not just "How do I compile for MinGW innit" Commented Aug 28, 2014 at 10:40
  • @GPPK Your guide helped me build the libs. I had followed it in the past but I was missing one step and that's the reason I couldn't make it work. Commented Aug 28, 2014 at 12:19

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.