Skip to content

Instantly share code, notes, and snippets.

@Nosfreat
Nosfreat / Setup_OpenCV_Windows_For_Qt.md
Created August 9, 2024 18:19
How to setup OpenCV to work with Qt

How to setup OpenCV to work with Qt cmake

Follow this tutorial from Qt wiki up to adding to PATH:

Tutorial is valid for Qt6 and OpenCV 4.x - follow same steps but during OpenCV compilation select similar paths to your Qt6 installation (name of the folder with mingw may vary depending on your installation) https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows

since we are doing cmake project, ignore the "Compile and run the example" - we do not have .pro file.

After the tutorial