I trying to get an application to work with OpenCV 2.3.0 (stable) and latest SVN-Revision as well under Ubuntu 11.04. The Code works flawlessly under Windows.
//includes etc...
int main(){
CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANY );
if ( !capture ) { //is always "NULL" here
fprintf( stderr, "ERROR: capture is NULL \n" );
getchar();
return -1;
}
}
OpenCV 2.3 works once but now it refuses to work since last Ubuntu update or something. Is there a possibility to get the newer library to work?
I reverted back to the Ubuntu shipped library which works for now, but it would be great if I can convince the latest stable release to work too.