title: How to get started with OpenCV 2.4.2 in ubuntu 10.4?
body: <p>I am trying to install latest OpenCV version 2.4.2 on a linux (ubuntu 10.4) PC.</p>
  
  <p>I downloaded the tar ball.
  Un-tar-ed it.
  And followed <a href="http://helpforlinux.blogspot.in/2010/07/install-opencv-in-ubuntu-1004.html" rel="nofollow">install opencv in ubuntu 10.04</a>.</p>
  
  <p>While 'Make' I got error after "<strong><code>Linking CXX executable ../../bin/opencv_perf_core</code></strong>" comes in red color here; after millions of warning or error msgs it shows as follows:</p>
  
  <pre><code>... ... ...
  ../../lib/libopencv_ts.so.2.4.2: undefined reference to `std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;::~basic_string()'
  ../../lib/libopencv_ts.so.2.4.2: undefined reference to `typeinfo for int'
  collect2: error: ld returned 1 exit status
  make[2]: *** [bin/opencv_perf_core] Error 1
  make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>Keyword: "Linking CXX executable ../../bin/opencv_perf_core" with quotes.</p>
  
  <p>I googled for it and found that the PC needs CUDA driver. For now I don't need that perhaps.</p>
  
  <p>Does that driver installation required here or I can bypass that particular 'make' process?</p>
  
  <p>My aim is to get started with OpenCV as soon as possible in ubuntu. Does these build processes required for compiling own cpp file using openCV 2.4.2 libraries? I am not concentrating on static or non static libraries.</p>
  
  <p>Has anyone worked on for ubuntu as just like on windows I install OpenCV and get started just by setting path to the include file and keeping .dlls with the custom executable file, say for capturing images from a camera.</p>
  
  <p>&lt;=== Update ===></p>
  
  <p>Followed <a href="http://docs.opencv.org/trunk/doc/tutorials/introduction/linux_install/linux_install.html" rel="nofollow">http://docs.opencv.org/trunk/doc/tutorials/introduction/linux_install/linux_install.html</a>.</p>
  
  <p>It passed the Linking CXX executable ../../bin/opencv_perf_core.</p>
  
  <p>now it stucks at <strong><code>Linking CXX executable ../../bin/opencv_perf_highgui</code></strong> with following errors:</p>
  
  <pre><code>/usr/bin/ld: ../../lib/libopencv_highgui.a(cap_libv4l.cpp.o): undefined reference to symbol 'v4l2_close'
  /usr/bin/ld: note: 'v4l2_close' is defined in DSO /usr/lib/libv4l2.so.0 so try adding it to the linker command line
  /usr/lib/libv4l2.so.0: could not read symbols: Invalid operation
  collect2: error: ld returned 1 exit status
  make[2]: *** [bin/opencv_perf_highgui] Error 1
  make[1]: *** [modules/highgui/CMakeFiles/opencv_perf_highgui.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>Seems the <strong>cmake</strong> parameters has to be studied well. Any shortcut will be helpful.</p>