title: undefined symbol: _ZN2cv3Mat10deallocateEv
body: <p>I've been trying to extend my python script with a C++ code. I was able to do that with the simple libraries of C++ (print "hello world"). I followed the tutorial available in the link below:</p>
  
  <p><a href="http://www.tutorialspoint.com/python/python_further_extensions.htm" rel="nofollow">http://www.tutorialspoint.com/python/python_further_extensions.htm</a></p>
  
  <p>When I tried to add to my C++ code opencv libraries I encountered the following problem:
  ImportError: /usr/local/lib/python2.7/dist-packages/kalman.so: undefined symbol: _ZN2cv3Mat10deallocateEv</p>
  
  <p>I searched for many solutions on the internet, and I found one common answer that didn't workout for me:
  "I was able to solve this by going to /usr/lib64/pkgconfig and modified opencv.pc to explicitly have all libraries. I also had to move the plugins from /usr/lib/gstreamer-0.10 to /usr/lib64/gstreamer-0.10"</p>
  
  <p>Please note that I am using ubuntu 14.04 LTS 64-bit and I am planning to run my code later on on a raspberry pi model B running Raspbian OS. </p>
  
  <p>Thank you.</p>
  
  <p>NJ</p>