简体   繁体   English

在Windows中使用Qt配置openCV

[英]Configuring openCV with Qt in windows

I have a project which uses openCV. 我有一个使用openCV的项目。 I am trying to set up openCV library to use in my Qt application. 我正在尝试设置要在我的Qt应用程序中使用的openCV库。

For my Qt installation I installed Visual Studio and am using its compiler and CDS debugger. 对于我的Qt安装,我安装了Visual Studio,并且正在使用其编译器和CDS调试器。 After doing all this when I am going through the documentation I am seeing that MinGW is used to configure openCV and Qt ( https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows ) 完成所有这些工作后,我将看到MinGW用于配置openCV和Qt( https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows

But in most cases we will be using VS, so how can someone configure openCV with Qt if using Visual Studio compilers. 但是在大多数情况下,我们将使用VS,因此如果使用Visual Studio编译器,那么如何使用Qt配置openCV。

First you need to install the Visual Studio plugin - http://doc.qt.io/qtvstools/index.html 首先,您需要安装Visual Studio插件-http: //doc.qt.io/qtvstools/index.html

You then need to make sure you have built both OpenCV & Qt for whatever compiler you are using. 然后,您需要确保已为使用的任何编译器构建了OpenCV和Qt。 VS2017 for example, I don't think the default binaries come with the Qt option. 以VS2017为例,我不认为默认二进制文件带有Qt选项。 There is an installation guide here - https://wiki.qt.io/OpenCV_with_Qt 此处有安装指南-https: //wiki.qt.io/OpenCV_with_Qt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM