无法安装Dlib

时间:2016-10-27 20:54:49

标签: c++ opencv computer-vision

我最近在macOS Sierra 10.12上安装了OpenCV 3.0。

安装OpenCV后,我按照其网站上的说明尝试compile the Dlib examples。我在这里遇到了构建错误,我不太确定如何修复。

错误:

[ 36%] Linking CXX executable webcam_face_pose_ex
Undefined symbols for architecture x86_64:
  "cv::VideoCapture::VideoCapture(int)", referenced from:
  _main in webcam_face_pose_ex.cpp.o
  "cv::VideoCapture::~VideoCapture()", referenced from:
  _main in webcam_face_pose_ex.cpp.o
  "cv::VideoCapture::operator>>(cv::Mat&)", referenced from:
  _main in webcam_face_pose_ex.cpp.o
  "cv::Mat::deallocate()", referenced from:
  _main in webcam_face_pose_ex.cpp.o
  "cv::Mat::copySize(cv::Mat const&)", referenced from:
  _main in webcam_face_pose_ex.cpp.o
  "cv::fastFree(void*)", referenced from:
  _main in webcam_face_pose_ex.cpp.o
  "_IplImage::_IplImage(cv::Mat const&)", referenced from:
  dlib::cv_image<dlib::bgr_pixel>::cv_image(cv::Mat) in webcam_face_pose_ex.cpp.o
  "cv::VideoCapture::isOpened() const", referenced from:
  _main in webcam_face_pose_ex.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [webcam_face_pose_ex] Error 1
make[1]: *** [CMakeFiles/webcam_face_pose_ex.dir/all] Error 2
make: *** [all] Error 2

我意识到这些是链接器错误。有人会非常友好地告诉我如何修复这些链接器错误吗?

0 个答案:

没有答案