trouble shooting of ZSTD_* related linking error when installing OPENCV3 - Serbipunk/notes GitHub Wiki
[ 41%] Linking CXX executable ../../bin/opencv_test_core
/usr/bin/ld: warning: libpcre.so.1, needed by //home/bai/anaconda3/lib/libglib-2.0.so.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libzstd.so.1.3.7, needed by //home/bai/anaconda3/lib/libtiff.so.5, not found (try using -rpath or -rpath-link)
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_initCStream'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_freeCStream'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_maxCLevel'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_createCStream'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_isError'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_getErrorName'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_endStream'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_createDStream'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_initDStream'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_freeDStream'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_compressStream'
//home/bai/anaconda3/lib/libtiff.so.5: undefined reference to `ZSTD_decompressStream'
sulution: https://blog.csdn.net/splend520/article/details/97270438
remove anything ralated to anaconda!