How to setup Qt and openCV on Windows: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(initial instructions for installing QT)
 
(Added placeholders for installing a very old version of openCV, to have something that works :-))
Line 5: Line 5:


== Introduction ==
== Introduction ==
WARNING: The below procedures are incomplete, and not functional.
This article shows how to install both Qt and openCV, and build a basic OpenCV example. This article assumes Windows 7 has just been installed.


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 uses information from the following pages:
http://docs.opencv.org/2.4/doc/tutorials/introduction/windows_install/windows_install.html?highlight=installation
http://www.laganiere.name/opencvCookbook/chap1s1_2.shtml


This article is tested with windows 7, Qt v... and OpenCV v....
== Windows, source of openCV, old version ==
This section is a direct copy of [http://www.laganiere.name/opencvCookbook/chap1s1_2.shtml this] guide. Only minor changes are done to make it work with a newer version of Qt.
=== Qt ===
==== Installation ====
==== Testing ====
=== Install Tortoisegit ===
=== Cmake ===
==== Installing Cmake ====
==== Configuring Cmake ====
=== OpenCV ===
==== Getting OpenCV ====
==== Compiling OpenCV ====
==== Installing OpenCV ====
==== Configuring OpenCV ====
=== Building and running an example ===


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


== Windows, precompiled binaries ==


=== Install OpenCV ===
=== Install OpenCV ===
Line 28: Line 44:
  start menu shortcuts: next
  start menu shortcuts: next
  ready to install: install
  ready to install: install
=== Adjust Qt ===
Run D:\Qt\MaintenanceTool.exe then use the following options:
maintain Qt: Qt Account: Skip
Setup Qt: Add or remove components: Next
Select components: Qt-Qt5.8-MinGW 5.3.0 32 bit
Select components: tools-MinGW 5.3.0 32 bit: next :update


=== Configure Qt and OpenCV ===
=== Configure Qt and OpenCV ===


=== Compile and run the example ===
=== Compile and run the example ===

Revision as of 17:53, 2 March 2017

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

WARNING: The below procedures are incomplete, and not functional.

This article shows how to install both Qt and openCV, and build a basic OpenCV example. This article assumes Windows 7 has just been installed.

This article uses information from the following pages: http://docs.opencv.org/2.4/doc/tutorials/introduction/windows_install/windows_install.html?highlight=installation http://www.laganiere.name/opencvCookbook/chap1s1_2.shtml

Windows, source of openCV, old version

This section is a direct copy of this guide. Only minor changes are done to make it work with a newer version of Qt.

Qt

Installation

Testing

Install Tortoisegit

Cmake

Installing Cmake

Configuring Cmake

OpenCV

Getting OpenCV

Compiling OpenCV

Installing OpenCV

Configuring OpenCV

Building and running an example

Windows, precompiled binaries, new versions

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

Adjust Qt

Run D:\Qt\MaintenanceTool.exe then use the following options:

maintain Qt: Qt Account: Skip
Setup Qt: Add or remove components: Next
Select components: Qt-Qt5.8-MinGW 5.3.0 32 bit
Select components: tools-MinGW 5.3.0 32 bit: next :update

Configure Qt and OpenCV

Compile and run the example