Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ImportError: libfontconfig.so.1: undefined symbol: FT_Done_MM_Var #12625
I tried again by destroying the "build" folder created for compilation, create the "build" folder again and do all the steps for compilation again. As before, I did not have an error while compiling, but I still have this error when trying to import cv2. The only difference was the fact that the flag "Non-free algorithms" remains "NO" this time even if some module of opencv-contrib where there in the section "To be built" (like xfeature2d, ximgproc, xphoto). I also installed other libraries that was missing to try to have all the opencv-contrib modules, but that did not change anything.
My last compillation give me this:
After looking for a long time on different forums, I found several things like:
I end up giving up and simply use: pip install opencv-contrib-python
It only takes 30.6 MB and 5 seconds to install it and it has everything I need, but without the relationships with the libraries installed only for OpenCV (like VTK, Tesseract, etc.). At least it works, not like with CMAKE where I try to find a solution, but nothing seems to be able to correct this problem.
If anyone else has an idea to solve this problem, I'll try it to see if that fixes the problem. If no other solution can be found, this issue may be closed since another alternative has worked.
Hi @PoissonChasseur, I also had the same problem. This error seems to persist even compiling OpenCv with different flags in cmake. Anyway, thanks for sharing the pip solution! It helped me a lot =)
In addition that, if someone needs
As the solution this StackOverflow post suggest to install a different version:
pip install opencv-python==126.96.36.199 opencv-contrib-python==188.8.131.52
I also got this problem, which was maybe caused by the dev version 4.0.0 of OpenCV which I built previously (no idea actually). To solve this, I deleted the mentioned lib :
And I also got the same problem with :
After removing those files and