Ask Your Question

el_gato_de_ch's profile - activity

2018-07-14 12:43:44 -0600 received badge  Famous Question (source)
2016-01-08 03:37:44 -0600 received badge  Notable Question (source)
2014-12-02 23:18:13 -0600 received badge  Popular Question (source)
2013-07-13 23:27:26 -0600 received badge  Supporter (source)
2013-07-13 23:27:17 -0600 commented answer imshow namedWindow crash

I love you man! You are my hero! It is realy working, Thanks a lot.

2013-07-13 23:26:52 -0600 received badge  Scholar (source)
2013-07-13 02:42:18 -0600 commented question imshow namedWindow crash

I got no errors in terminal, just only gray window with no image inside. You know just a hang up window and when you want to close it windows pops up a message with buttons "close" "wait for response" ...

May be somehow I can post an screenshot to explain what I mean, but it will be russian language.

2013-07-12 08:32:30 -0600 asked a question imshow namedWindow crash

Hey.

I downloaded opencv 2.4.6 archive and extract it. Decided to use standart build from build/x86/mingw/lib. I had no compilation errors, but when I run my programm it's crashed on cv::namedWindow() or cv::imshow() functions.

#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"

#include <iostream>

using namespace std;

int main()
{
cv::Mat pic = cv::imread("1.jpg");
//cv::namedWindow("Smile", CV_WINDOW_NORMAL);
cv::imshow("Smile", pic);
cv::imwrite("2.jpg", pic);
cout << pic.rows << endl;

char ch;

cin >> ch;
cv::destroyWindow("Smile");
return 0;
}

I searched this problem in internet and found this solution. Then I tried to disable all checkboxes ENABLE_SSE in cmake, but it didn't work, programm is still crashing on imshow()

Could you, please, give me cmake properties for build opencv with mingw compiler. I use just mingw compiler without any IDE, but my friend uses QT, so I need to build this libraries with qt support, I also need this bug, with crashing on namedWindow calling, is fixed. I've got WIN7 32 on my computer.

I do built this way:

  • configuring and generating cmake
  • run terminal in the directory of cmake binary
  • mingw32-make
  • mingw32-make install

I hope you will help. Thanks a lot.