How to setup Qt and openCV on Windows

From Qt Wiki
Revision as of 18:50, 27 February 2017 by Cdwijs (talk | contribs) (initial instructions for installing QT)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to setup Qt and openCV on Windows


This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Incomplete and not functional.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

Introduction

This article shows how to install both Qt and openCV, and build a basic OpenCV example. This article assumes only windows has been installed. Precompiled binaries are used.

This article is tested with windows 7, Qt v... and OpenCV v....

This article uses knowledge from the following pages: http://docs.opencv.org/2.4/doc/tutorials/introduction/windows_install/windows_install.html?highlight=installation

Windows, precompiled binaries

Install OpenCV

Download the newest version from sourceforge . At the time of this writing, opencv-3.2.0-vc14.exe (118MB) is the latest version. Execute the program, then enter a location with at least 460MB free. This how to assumes OpenCV to be extracted to "d:\", so the folder d:\opencv exists.

Install Qt

Download the Qt installer from www.qt.io, then choose "Download now" This will then download qt-unified-windows-x86-2.0.5-online.exe Execute the program, then choose the following settings:

welcome next
qt account skip
setup-Qt next
installation folder: D:\Qt
select components: next (accept defaults)
License Agreement: agree and next
start menu shortcuts: next
ready to install: install

Configure Qt and OpenCV

Compile and run the example