1. Install Visual studio 2013 community version which is free to use for personal usage.

2. Setup the debugger follow the instruction in http://doc.qt.io/qtcreator/creator-debugger-engines.html. On windows can go to link

https://msdn.microsoft.com/en-us/library/windows/hardware/ff551063(v=vs.85).aspx to download and install Debugging Tools for Windows.

3. Install OpenCV 3.0

4. Use CMake create OpenCv 2013 solutions.

5. Build OpenCv project, target platform choose x86. ( OpenCv 3.00 cannot build success if target x64 platform)

6. Install QT. Download qt-opensource-windows-x86-msvc2013-5.5.1.exe and install. (Can not use qt-opensource-windows-x86-msvc2013_64-5.5.0.exe, because no 64 bit dynamic library available)

7. Create a QTConsole project in QT creator. Add the below blue code to the QTConsole.pro file. (Please change the include path and library path to the real path on your PC)

QT += core
QT -= gui

TARGET = QTConsole
CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app

INCLUDEPATH += C:/Users/shenxiao/Downloads/opencv/build/include

LIBS += -LC:/Tools/OpenCV_MyBuild/lib/Debug \
    opencv_core300d.lib \
    opencv_highgui300d.lib \
    opencv_imgproc300d.lib \
    opencv_features2d300d.lib \
    opencv_calib3d300d.lib \
    opencv_videoio300d.lib \
    opencv_video300d.lib \
    opencv_imgcodecs300d.lib\

SOURCES += main.cpp

8. Change the main.cpp to code as below.
#include <QCoreApplication>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv/cv.h" void Test()
{
cv::Mat mat;
mat = cv::imread("C:\\Test\\QTConsole\\img.jpg");
if ( mat.empty() )
return;
cvNamedWindow("hello");
cv::imshow("hello",mat); cvWaitKey(); cv::destroyWindow("hello");
} int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
Test();
printf("hello world");
getchar();
return a.exec();
}

9. Run QMake, build and then press F5 to run with debug.

If the application can not start, then need to copy all the opencv build .dll files to the debug folder, together with the exe file.

Setup QT 5.5.1 + OpenCV 3.0 + Visual Studio 2013 on windows 10的更多相关文章

  1. 新手一步一步OpenCV+Win7+Visual Studio 2013环境配置

    地点:湖南大学软件大楼211 时间:2013.12.19 昨天导师布置了个任务,要求是找出用相机拍出同一移动场景下的两张照片,计算机能根据其中的差异计算场景移动的距离和旋转角度.据说以前很牛逼的师兄完 ...

  2. Compiling Qt 5.5.1 (With Qtwebkit) With Visual Studio 2015

    I usually avoid writing articles about building a specific version of a software project but this ti ...

  3. #error : Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported! 解决方案

    OpenNI1.5 VS2013配置环境后,编译会出现这个错误: 错误 error C1189: #error : Xiron Platform Abstraction Layer - Win32 - ...

  4. Visual Studio 2013 Ultimate & IIS Express 8.0 错误 [iisexpress.exe”已退出,返回值为 -1073741816 (0xc0000008)] 解决方法

    1. 开发环境 Visual Studio 2013 Ultimate IIS 8.0 Express 2. 错误信息 错误提示:iisexpress.exe”已退出,返回值为 -1073741816 ...

  5. OpenCV:Visual Studio 2013 Ultimate中OpenCV 2.4.8 配置

    配置环境: 操作系统:Win8.1  64位 IDE平台:Visual Studio 2013 Ultimate 一.准备OpenCV 2.4.8 1.下载:从官网下载 OpenCV2.4.8:   ...

  6. (C#2,.net framework2.0,Visual Studio 2003)之前版本

    (C#2,.net framework2.0,Visual Studio 2003)之前版本归为最初的版本(主要是针对.net framework),其主要定义了最基本的类型.特性. 1.基本的类型 ...

  7. 利用CMake和OpenCV源代码生成Visual Studio工程

    OpenCV1.0版本有windows,linux之分,笔者曾经一直使用Opencv1.0.这个版本在下载,安装之后,在 \OpenCV\_make文件夹下面已经存在了一个opencv.dsw的工程文 ...

  8. Visual Studio 2005 搭建Windows CE 6.0环境之准备

    Microsoft Visual Studio 2005 Visual Studio 2005 Professional 官方90天试用版英文版:http://download.microsoft.c ...

  9. Visual Studio 2013中c#语言规范5.0

    文件位置 vs安装路径 "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC#\Specifications\2052\CSharp ...

随机推荐

  1. Sql Server Analysis Service 转换为UnknownMember的正确设置 (转载)

    转载: http://www.cnblogs.com/OpenCoder/p/4754447.html#commentform 在SSAS中事实表数据被归类到为UnknownMember 的时候分为两 ...

  2. 阿里weex学习入门必备

    1.阿里weex学习前景 至于这些东西,可以参照一下链接去看看其作用.... http://share.iclient.ifeng.com/news/sharenews.f?forward=1& ...

  3. npoi本地文件

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.I ...

  4. Server Name Indication(SNI)

    转载自: http://openwares.net/misc/server_name_indication.html Server Name Indication是用来改善SSL(Secure Soc ...

  5. openssl之rsa

    格式 openssl rsa [-inform PEM|NET|DER] [-outform PEM|NET|DER] [-in filename] [-passin arg] [-out filen ...

  6. Android 蓝牙打印超时问题的处理

    http://stackoverflow.com/questions/18657427/ioexception-read-failed-socket-might-closed-bluetooth-on ...

  7. [手机取证] Jonathan Zdziarski公开的苹果iOS后门及POC视频

    Jonathan Zdziarski 近日在其推特上公布了此“后门”的研究及POC视频,并表示全球媒体“夸大”了此事,自己“从未表示过认为此后门与NSA的监控行为有关”. 视频 http://pan. ...

  8. 如何通过JavaScript构建Asp.net服务端控件

    摘要 虽然ASP.NET的服务器控件一直被大家所诟病,但是用户控件(ACSX)在某些场景下还是非常有用的. 在一些极特珠的情况下,我们会使用JavaScript动态的构建页面中的控件,但假设遇到了我要 ...

  9. linux基础2——gdb调试器

    gdb调试器使用的一般步骤(不断更新完善): 1.编译过程中要用-g参数来添加调试符号——gcc test.c -g: 2.gdb启动可执行文件——gdb a.out: 3.出现gdb符号表示启动成功 ...

  10. 用iptables 实现本地端口转发

    设定本机2121端口转发到21端口 iptables -t nat -A PREROUTING -p tcp -i eth0 -d -j DNAT --to iptables -t nat -I PO ...