Ask Your Question

Sergey89's profile - activity

2013-03-07 08:44:26 -0600 asked a question connection OpenCV (2.4.3, 2.4.4) to QT Creator with MinGW 4.8.1 under Windows 7

Hello! I'm trying to set up OpenCV built with CMake to Qt Creator 2.4.1 (32-bit, with MinGW 4.8.1). I placed lib-files to c:\QtSDK\Desktop\Qt\4.8.1\mingw\lib, bin-files to c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin. Set INCLUDEPATH and LIBS as it should be done.

I try to execute next program:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    cv::Mat m = cv::Mat::ones(400,400,CV_8U);

    return 1;
}

Program's built successful, but when run exit with error 0xc0000135. When I use C method (like CvMat) it works. With Qt Creator 2.6.2 with MinGW 5.0.1 32 bit program works! Has anyone ideas what is wrong?