Complied from source - ubuntu/python - error librsvg-2.so.2: undefined symbol: cairo_tag_end

asked 2020-03-24 03:03:53 -0600

meathead2k2 gravatar image

updated 2020-03-24 07:33:50 -0600

supra56 gravatar image

I've complied from source with the following cmake setitngs

cmake 
-D CMAKE_BUILD_TYPE=RELEASE 
-D INSTALL_PYTHON_EXAMPLES=ON 
-D INSTALL_C_EXAMPLES=OFF 
-D PYTHON_EXECUTABLE=/home/lewis/anaconda3/bin/python3
-D BUILD_opencv_python2=OFF 
-D CMAKE_INSTALL_PREFIX=/home/lewis/anaconda3
-D PYTHON3_EXECUTABLE=/home/lewis/anaconda3/bin/python3
-D PYTHON3_INCLUDE_DIR=/home/lewis/anaconda3/include/python3.7m
-D PYTHON3_PACKAGES_PATH=/home/lewis/anaconda3/lib/python3.7/site-packages
-D WITH_GSTREAMER=ON ..

When i import cv2 in python I'm getting the following error.

ImportError:
/lib/x86_64-linux-gnu/librsvg-2.so.2:
undefined symbol: cairo_tag_end

Anyone have any ideas what to do? Google is no help.

edit retag flag offensive close merge delete

Comments

1

please edit your question, and add the cmake console output fom building the opencv libs (rather long, but it will have hints)

berak gravatar imageberak ( 2020-03-24 04:14:18 -0600 )edit