QT Creator : undefined reference to `cv::VideoCapture::VideoCapture(int)‘

undefined reference to `cv::VideoCapture::VideoCapture(int)’

  1. 找到cmark编译opencv的输出文件夹,我的是buildQT
  2. 在.pro文件夹后添加:
    LIBS += D:\qt_opencv_config\opencv3.4.0\buildQT\bin\libopencv_shape340.dll
    LIBS += D:\qt_opencv_config\opencv3.4.0\buildQT\bin\libopencv_videoio340.dll

你可能感兴趣的:(opencv错误汇总)