View Full Version : OpenCV2.1 and Qt 4.7.4 integration

20th July 2011, 20:14
Hello Folks,

I want to integrate OpenCV2.1 with Qt. I've done OpenCV2.1 with VS2010 and it works fine; however, i couldn't find clear instructions on how to add the libraries or what i need to add in Qt.

I really appreciate your help.

Many thanks

20th July 2011, 23:31
You want the LIBS and INCLUDEPATH variables in your project's PRO file. Information on including external libraries into your Qt project is in the qmake manual (http://doc.qt.nokia.com/latest/qmake-project-files.html#declaring-other-libraries) and all over this forum like a rash. There's a even a OpenCV-specific example in the Newbie forum:
(at the time of writing just two posts down the list)