Error -Signal received: SIGSEGV (Segment fault)??

  • From: "louarnold" < >
  • To:
  • Subject: Error -Signal received: SIGSEGV (Segment fault)??
  • Date: Wed, 25 Jan 2012 17:49:49 +0000

Re: NetBeans 7.1, MINGW, MSYS, OpenCV2.3.1
I'm running on XP SP3. I installed the above and rebuilt OpenCV with CMake, 
set up PATH, the includes path, and the libraries.

When I run a small C++ program in debug mode I get the error message "Signal 
received: SIGSEGV (Segment fault) For Program myfirst_project, pid -1". Why 
is that?

Here is the code:


#include "opencv/cv.h"
#include "opencv/highgui.h"
using namespace std;
int main(int argc, char* argv[])
        cvNamedWindow("Demo", CV_WINDOW_AUTOSIZE);      //create and setup 
window called "Demo"
        CvCapture* capture=cvCaptureFromCAM(0); //setup camera capture process
        return 0;

The error message comes at the "CvCapture*..." lone.

Error -Signal received: SIGSEGV (Segment fault)??

louarnold 01/25/2012

Error -Signal received: SIGSEGV (Segment fault)??

louarnold 01/26/2012

Project Features

About this Project

CND was started in November 2009, is owned by DimaZh, and has 187 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm