Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
Recently, opencv source code compilation, the following error
[ 60%] Built target opencv_dnn
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
After Googling, I realized that after Anaconda was installed, both Python and GCC used Anaconda version. Anaconda’s GCC version is lower than system defalut’s version
Reference: https://stackoverflow.com/questions/40322301/compile-opencv-3-on-ubuntu-16-04-linking-error-usr-lib-x86-64-linux-gnu-libsox
solutions:
1. Annotate the environment variable of Anaconda in shell first
# export PATH=~/anaconda3/bin:$PATH
2. Cmake add options
-D WITH_OPENMP=ON
Similar Posts:
- Makefile:160: recipe for target ‘all’ failed (Ubuntu 16.06 + Opencv3.2) [Solved]
- [Solved] Lego-loam Error: opencv fatal error: cv.h: No such file or directory
- [Solved] C++ Compile Error: undefined reference to `log@GLIBC_2.29′
- [Solved] Opencv3.4.0 Install error: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
- Pyinstaller Package Error: ImportError: OpenCV loader: missing configuration file: [‘config.py‘]
- [Solved] ImportError: ERROR: recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation.
- Opencv learning notes 05 face detection and recognition attributeerror: module ‘CV2’ has no attribute ‘face’
- Problem solved successfully in Python: attributeerror: ‘module’ object has no attribute ‘loadimage‘
- MAC OS Install opencv ModuleNotFoundError: No module named ‘cv2’
- Consider using the `–user` option or check the permissions.