错误:未定义的引用符号到cv :: VideoCapture :: ~VideoCapture(),命令行中缺少DSO

时间:2015-05-14 09:22:26

标签: c++ opencv

我正在尝试在raspberry pi上运行我的opencv代码,但是我收到以下错误

/usr/bin/ld: CMakeFiles/main.dir/main.o: undefined reference to symbol 'cv::VideoCapture::~VideoCapture()'
/usr/local/lib/libopencv_videoio.so.3.0: error adding symbols: DSO missing from command line

1 个答案:

答案 0 :(得分:0)

DSO代表"动态共享对象"所以它可能是一个链接错误。请参阅:openCV 2.4.7 error adding symbols: DSO missing from command line

-lopencv_features2d添加到编译路径。