title: OpenCV in Ubuntu does not show window
body: <p>I installed a fresh Ubuntu. Downloaded Eclipse via the Shop, installed the CDT plugin via the Plugin Manager in Eclipse (Kepler). I used the Shop to download the OpenCV dev package. After adding the paths in eclipse I wrote a short program.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "opencv2/opencv.hpp"
  
  int main(int argc, const char * argv[])
  {
      cvNamedWindow( "result", CV_WINDOW_AUTOSIZE );
  
      CvCapture* capture = cvCaptureFromCAM(-1);
  
      IplImage *newImg;
  
      while(true)
      {
          newImg = cvQueryFrame( capture );
          if( newImg==0 )
              break;
          cvShowImage( "result", newImg );
      }
      return 0;
  }
  </code></pre>
  
  <p>The program compiles and the debugger shows some values in newImg. But there is no window coming up and shows the result. The camera LED lights, a step through the loop seem to work perfect. Only the output window is missing. The same program runs perfect in XCode on OS X.</p>