libopencv_freetype.4.1.dylib version error

asked 2019-04-10 12:48:07 -0500

I have error while importing opencv 4.1 installed with conda (import cv2 in python): libopencv_freetype.4.1.dylib requires version 24.0.0 or later, but libfreetype.6.dylib provides version 23.0.0 But there is no libfreetype.6.dylib with version later than 23.0.17!

Here is VERSION.TXT from the latest freetype release - 2.10.0

release - 2.10.0 libtool - 23.0.17 so - 6.17.0

What I did wrong?

edit retag flag offensive close merge delete

Comments

opencv does not maintain any anaconda builds, you have to make an issue with the actual maintainer.

if you build from src, you can just disable the freetype module: cmake -D BUILD_opencv_freetype=OFF

berak gravatar imageberak ( 2019-04-10 13:40:01 -0500 )edit

Thx for answer! I solved this by upgrading to 2.10.0

otool -L ~/anaconda2/pkgs/freetype-2.10.0-h24853df_0/lib/libfreetype.6.dylib: @rpath/libfreetype.6.dylib (compatibility version 24.0.0, current version 24.0.0) NOT! 23.0.17 @rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11) @rpath/libpng16.16.dylib (compatibility version 52.0.0, current version 52.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

badmovich gravatar imagebadmovich ( 2019-04-10 15:10:06 -0500 )edit