python - undefined symbol: _ZN2cv3Mat10deallocateEv -
i've been trying extend python script c++ code. able simple libraries of c++ (print "hello world"). followed tutorial available in link below:
http://www.tutorialspoint.com/python/python_further_extensions.htm
when tried add c++ code opencv libraries encountered following problem: importerror: /usr/local/lib/python2.7/dist-packages/kalman.so: undefined symbol: _zn2cv3mat10deallocateev
i searched many solutions on internet, , found 1 common answer didn't workout me: "i able solve going /usr/lib64/pkgconfig , modified opencv.pc explicitly have libraries. had move plugins /usr/lib/gstreamer-0.10 /usr/lib64/gstreamer-0.10"
please note using ubuntu 14.04 lts 64-bit , planning run code later on on raspberry pi model b running raspbian os.
thank you.
nj
check shared library kalman.so
ldd
so:
$ ldd kalman.so
and see missing libraries. means have provide correct path 1 of libraries use in code @ linkage stage. like
$ ...the way linking ... -l path_to_the_missing_library
for more information, please, consult link.
Comments
Post a Comment