title: OpenCV on Ubuntu
body: <p>What packages do I need to install OpenCV on Ubuntu lucid 10.04 ?
  Do I need to do anything else to be able to compile a simple C example
  like setting an env variable or changing the path?</p>
  
  <p>Is gcc a good compiler for OpenCV?</p>
  
  <p>The example I'm trying to compile:</p>
  
  <pre><code>int main( int argc, char** argv ) {
  IplImage* img = cvLoadImage( argv[1] );
  cvNamedWindow( “Example1”, CV_WINDOW_AUTOSIZE );
  cvShowImage( “Example1”, img );
  cvWaitKey(0);
  cvReleaseImage( &amp;img );
  cvDestroyWindow( “Example1” );
  </code></pre>
  
  <p>}</p>
  
  <p>Thanks</p>