/usr/bin/ld: ../../lib/libopencv_imgcodecs.so.4.5.0: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0' collect2: error: ld returned 1 exit status make[2]: *** [apps/annotation/CMakeFiles/opencv_annotation.dir/build.make:89:bin/opencv_annotation] 错误 1 make[1]: *** [CMakeFiles/Makefile2:3009:apps/annotation/CMakeFiles/opencv_annotation.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务....
上面是完整的报错
原因是安装了多个opencv
解决方法:在cmake时添加cmake -D BUILD_TIFF=ON