How to Configure Qt to Use OpenCV Static Build in Linux

Posted on Posted in OpenCV Tutorials, Qt Tutorials, Tutorials

First of all I assume you have seen this post which describes how to build opencv statically for Linux. If that is the case then you can just add the following code to your qmake .PRO file to use opencv with Qt.

CONFIG += link_pkgconfig
PKGCONFIG += opencv

Leave a Reply

Your email address will not be published. Required fields are marked *