https://blog.csdn.net/ainitutu/article/details/107084691
https://blog.csdn.net/limhsysu/article/details/84959736
编译时遇到如下问题:
/home/yasaburo3/anaconda3/lib/libtbb.so.2:对‘__cxa_init_primary_exception@CXXABI_1.3.11’未定义的引用
/home/yasaburo3/anaconda3/lib/libtbb.so.2:对‘std::__exception_ptr::exception_ptr::exception_ptr(void*)@CXXABI_1.3.11’未定义的引用
collect2: error: ld returned 1 exit status
tools/VideoViewer/CMakeFiles/VideoViewer.dir/build.make:122: recipe for target 'tools/VideoViewer/VideoViewer' failed
make[2]: *** [tools/VideoViewer/VideoViewer] Error 1
CMakeFiles/Makefile2:289: recipe for target 'tools/VideoViewer/CMakeFiles/VideoViewer.dir/all' failed
make[1]: *** [tools/VideoViewer/CMakeFiles/VideoViewer.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
解决方法:从x86_64-linux-gnu中替换anaconda3/lib中的libtbb.so.2
参考:
https://blog.csdn.net/lucas1997/article/details/104558183