title: Opencv 2.4.5 make error
body: <p>I am trying to install opencv 2.4.5 on Ubuntu 12.04
  I tried following the steps on <a href="http://opencv.willowgarage.com/wiki/InstallGuide_Linux" rel="nofollow">http://opencv.willowgarage.com/wiki/InstallGuide_Linux</a></p>
  
  <p>However when I reach the make step. I am getting an error. I am new to linux.</p>
  
  <p>The error is </p>
  
  <pre><code>Linking CXX shared library ../../lib/libopencv_highgui.so
  /usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/local/lib/libavcodec.a: could not read symbols: Bad value
  collect2: ld returned 1 exit status
  make[2]: *** [lib/libopencv_highgui.so.2.4.5] Error 1
  make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>Please help!!!</p>