我想在OSX Yosemite上使用Macbook Pro 8,1和XCode运行OpenCV(opencv-3.0.0-beta)。但是我遇到了一些问题。
使用的代码:
#include <iostream>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/core.hpp"
using namespace cv;
int main(){
VideoCapture cap(0);
while (true){
Mat Webcam;
cap.read(Webcam);
imshow("Webcam", Webcam);
}
}
我有四个问题..
Undefined symbols for architecture x86_64:
"cv::VideoCapture::read(cv::_OutputArray const&)", referenced from:
_main in main.o
"cv::VideoCapture::VideoCapture(int)", referenced from:
_main in main.o
"cv::VideoCapture::~VideoCapture()", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
搜索路径的设置为:
**有人可以帮忙吗?
如果您需要更多信息,请告诉我。 你会得到它们:p
谢谢!**